effective c++ 条款20 prefer pass-by-reference-to-const to pass-by-value

pass by value need to call constructor and desructor so not efficient.

but exept for built-in type and stl :: iterator and 函数对象 

 

posted @ 2014-07-09 03:53  williamwood  阅读(92)  评论(0编辑  收藏  举报