以下为句子列表:
英文: The efficiency savings can be substantial for such a simple habit: to pass an argument by value requires a constructor and destructor call, but if you're not going to modify the argument then passing by const reference only needs an address pushed on the
中文: 简简单单的习惯却能节约巨大的效能:传值方式传递参数需要一次构造函数和析构函数调用,然而假如你并不需要修改被传递的参数,那么通过传递常量引用仅仅需要往栈里压入一个地址。
更详细...
|