[分享] C++ Templates & Generic Programming
本魯近日參加 "Effective C++ 3/e" 讀書會
負責第七章 "Templates & Generic Programming"
和大家分享投影片,請不吝指教 <(_ _)>
https://speakerdeck.com/dannvix/c-plus-plus-templates-and-generic-programming
內容包含:
- Item 41: Understand implicit interfaces and compile-time polymorphism
- Item 42: Understand the two meanings of `typename`
- Item 43: Know how to access names in templatized base classes
- Item 44: Factor parameter-independent code out of templates
- Item 45: Use member function templates to accept "all compatible types"
- Item 46: Define non-member function inside templates
when type conversion are desired
- Item 47: Use traits classes for information about types
- Item 48: Be aware of template metaprogramming
// 內容較多故字體偏小,建議下載 PDF 以方便閱讀 :P
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.240.178.38
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1447077381.A.DC1.html
推
11/09 23:14, , 1F
11/09 23:14, 1F
推
11/10 00:10, , 2F
11/10 00:10, 2F
→
11/10 16:08, , 3F
11/10 16:08, 3F
推
11/10 16:42, , 4F
11/10 16:42, 4F
→
11/10 20:05, , 5F
11/10 20:05, 5F
推
11/11 09:25, , 6F
11/11 09:25, 6F
推
11/11 09:57, , 7F
11/11 09:57, 7F
推
11/13 00:36, , 8F
11/13 00:36, 8F
→
11/13 00:36, , 9F
11/13 00:36, 9F
→
11/13 00:37, , 10F
11/13 00:37, 10F
→
11/13 00:38, , 11F
11/13 00:38, 11F
→
11/13 00:39, , 12F
11/13 00:39, 12F
推
11/13 15:23, , 13F
11/13 15:23, 13F
→
11/13 22:47, , 14F
11/13 22:47, 14F
→
11/13 22:53, , 15F
11/13 22:53, 15F
推
11/15 10:31, , 16F
11/15 10:31, 16F
→
11/15 12:53, , 17F
11/15 12:53, 17F
→
11/15 12:54, , 18F
11/15 12:54, 18F
→
02/01 23:43, , 19F
02/01 23:43, 19F