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

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

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

相关文章
相关标签/搜索