go top

命名返回值

网络释义

  named return value

...对象被初始化为或者赋值为该类的另一个对象),以及为了有效地支持按成员初始化和拷贝而提出的命名返回值named return value)扩展。

基于16个网页-相关网页

短语

命名返回值优化 NRVO ; Named Return Value Optimization

有道翻译

命名返回值

Named return value

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 输出语句添加构造函数、析构函数复制构造函数,查看运行程序命名返回优化效果

    Add output statements to the constructor, destructor and copy constructor to see the effect of the Named Return Value optimization when you run the program.

    youdao

  • 调用函数使用返回作为语言表达式一部分,只需要命名附加一个使用圆括号括起参数列表

    To call a function and use its return value as part of a larger expression, simply name it and append a parenthesized argument list.

    youdao

  • 多个返回,有良好代码文档会更好——Go允许返回值命名参数一样。

    With multiple return values, it is good to have the code document which is which - go allows you to give the return values names, just like parameters.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定