会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sxcww
博客园
首页
新随笔
联系
管理
订阅
2014年5月13日
operator->
摘要: 在学习Stl的过程中,经常看到->符号的重载,但一直不太明白。 今天做了一个小测试,来看看如果调用它。 以list的迭代器为例,在 pointer operator->() const { return &(operator*());}中加入 cout str_list; str_list.push_back(str); list::iterator it=str_list...
阅读全文
posted @ 2014-05-13 21:19 sxcww
阅读(188)
评论(0)
推荐(0)
编辑
公告