I saw Scott Meyers' "Effective C++" third edition book having a small section on "Template Programming".
Any other book/links containing information on "effective" usage of templates ?
I saw Scott Meyers' "Effective C++" third edition book having a small section on "Template Programming".
Any other book/links containing information on "effective" usage of templates ?
我喜欢Modern C++ Design: Generic Programming and Design Patterns Applied。我发现它写得很好,很清楚。包含一些高级主题。
Vandevoorde / Josuttis 'C++ Templates the Complete Guide' 非常易于访问。
C++ 模板 - 完整指南。Alexandrescu 的 Modern C++ Design 非常好,但除非您已经熟悉模板,否则我不会推荐它。它也更适合 C++ 框架的创建者。
我非常喜欢 Abrahams 和 Gurtovoy 的 C++ Template Metaprogramming。
Scott Meyers 在Effective STL中处理标准模板库。这可能与您有关。
Stephen C. Dewhurst的C++ Common Knowledge是一本很少被提及但很可靠的书。“在贝尔实验室 C++ 的第一批用户中”,Dewhurst 给这本书起了一个有点欺骗性的标题,因为他实际上涵盖了相当多的高级材料,特别是与模板有关的内容。
Dewhurst 的书的组织方式与 Meyers 的类似,有 63 个“项目”,您可以自行阅读这些项目。在模板上,您应该查看第 45-59 项(大约 70 页阅读)。