标签:
1、By default, C++ passes objects to and from functions by value (a characteristic it inherits from C). Unless you specify otherwise, function parameters are initialized with copies of the actual arguments, and function callers get back a copy of the value returned by the function. These copies are produced by the objects‘ copy constructors. This can make pass-by-value an expensive operation.
<Effective C++>读书摘要--Designs and Declarations<二>
标签:
原文地址:http://www.cnblogs.com/GloryLion/p/4439490.html