Effective C++ -----条款48:认识template元编程

Template metaprogramming(TMP,模板元编程)可将工作由运行期移往编译期,因而得以实现早期错误侦测和更高的执行效率。

TMP可被用来生成“基于政策选择组合”(based on combinations of policy choices)的客户定制代码,也可用来避免生成对某些特殊类型并不适合的代码。

原文地址:https://www.cnblogs.com/wen-ge/p/4380423.html