会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
华波(Wiess)的博客
博客园
首页
新随笔
联系
管理
订阅
2014年12月16日
操作符重载
摘要: 今天在看《Effective C++》的Item 10时,书中说道,赋值操作符需要返回的是对*this的引用。例如:class Widget {public: ... Widget& operator += (const Widget& rhs) { ... ...
阅读全文
posted @ 2014-12-16 16:23 wiessharling
阅读(146)
评论(0)
推荐(0)
编辑
公告