Item 44: Factor parameter-independent code out of templates(Effective C++)
摘要:
Templates generate multiple classes and multiple functions, so any template code not dependent on a template parameter causes bloat. Bloat due to non-type template parameters can often be eliminated by replacing template parameters with function parameters or class data members. Bloat due to type p. 阅读全文
posted @ 2011-04-06 20:27 Ray Z 阅读(204) 评论(0) 推荐(0) 编辑