Effective C++ Item 10 Have assignment operators return a reference to *this

If you want to concatenate assignment like this

int x, y, z;
x = y = z = 15;

The convention is to make the assignment operators return a reference to *this.

Effective C++ Item 10 Have assignment operators return a reference to *this,布布扣,bubuko.com

Effective C++ Item 10 Have assignment operators return a reference to *this

上一篇:[C++] VS2008下Boost库的编译安装


下一篇:C语言实现创建单链表及求长度