討論串[問題] 非靜態,access by type 的 data member
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). Standard C++11 or beyond. 問題(Question):. 想要請各位大大,是否存在一種手法,. 能讓我以 type 來 access data member?. 會想要用 type 來存
(還有1098個字)
內容預覽:
版大的寫法太隱晦了. 其實這邊需要的是動態的type註冊系統. http://ideone.com/oPvexQ. 這邊的 TypeRegistry 其實相當於版大用的 maximum size:. 版大的作法是每加入一個新的type. 底下的memory array會利用 maximum size
(還有380個字)
首頁
上一頁
1
下一頁
尾頁