討論串[問題] template問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者Chikei ( )時間14年前 (2011/12/23 13:34), 編輯資訊
0
0
0
內容預覽:
Final Committee Draft of ISO/IEC IS 14882. 14.8.2.5 Deducing template arguments from a type. 4. In most cases,[...] If a template parameter is used on
(還有207個字)

推噓1(1推 0噓 3→)留言4則,0人參與, 最新作者littleshan (我要加入劍道社!)時間14年前 (2011/12/23 11:47), 編輯資訊
0
0
0
內容預覽:
^^^^^^^^^^如果你只寫 foo(mc1, mc2). 表示 compiler 需要尋找出適當的 T1 和 T2. 使得 RParam<T1>::Type 剛好等於 MyClass1. 而且 RParam<T2>::Type 又等於 MyClass2. 不但需要花很多時間,而且符合條件的 T1

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者tyc5116 (累人啊....)時間14年前 (2011/12/23 10:43), 編輯資訊
0
0
0
內容預覽:
template<typename T>. class RParam{. public:. typedef typename IfThenElse<IsClass<T>::No,. T,. T const&>::ResultT Type. //判斷是否為Class,是Type則為T,不是Type則為
(還有278個字)
首頁
上一頁
1
下一頁
尾頁