600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > Item 20: Prefer pass-by-reference-to-const to pass-by-value(Effective C++)

Item 20: Prefer pass-by-reference-to-const to pass-by-value(Effective C++)

时间:2018-09-09 10:51:06

相关推荐

Item 20: Prefer pass-by-reference-to-const to pass-by-value(Effective C++)

Prefer pass-by-reference-to-constover pass-by-value. It's typically more efficient and it avoids the slicing problem.

The rule doesn't apply to built-in types and STL iterator and function object types. For them, pass-by-value is usually appropriate.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。