Effective C++ 条款10
摘要:
令operator= 返回一个reference to *this. Have assignment operators return a reference to *this. 赋值时,我们可以写成如下形式: int x,y,z; x=y=z=10; 这种连锁方式采用右结合方式,也就是 x=(y= 阅读全文
posted @ 2017-08-30 14:01 ^~~^ 阅读(85) 评论(0) 推荐(0) 编辑