go top

拷贝赋值运算符

网络释义

  copy assignment operator

如果你自己不声明一个 copy constructor(拷贝构造函数),一个 copy assignment operator拷贝赋值运算符)和一个 destructor(析构函数),编译器就会为这些东西声明一个它自己的版本。

基于82个网页-相关网页

  copy-assignment operator

拷贝赋值运算符类的拷贝赋值运算符copy-assignment operator)是一个名为operator=的函数。类似于其他任何函数,它也有一个返回类型和一个参数列表。

基于8个网页-相关网页

有道翻译

拷贝赋值运算符

Copy assignment operator

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

双语例句

  • 拷贝赋值运算符编译器自动实现除非提供一个

    A copy assignment operator is implemented by the compiler automatically unless you provide one.

    youdao

  • 每个(其实例容器内使用)必须至少实现拷贝构造函数(实现运算符也是习惯)。

    Each class whose instance will go into the container must implement at least the copy constructor it is good to implement also the assignment operator.

    youdao

  • 放在单独功能调用析构函数拷贝构造函数运算符需要的功能。

    Put the functionality you need in separate functions called by the destructor and the copy constructor and the assignment operator.

    youdao

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

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

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