The Blog of Nobody

Welcome! You are in the middle of nowhere. Windows Vista + Safari is recommended.
posts - 38, comments - 164, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

2007年9月23日

     摘要: 避免返回指向对象内部部件的句柄(引用、指针或迭代器)。这样做可以增强封装性,帮助const成员函数拥有更加“const”的行为,并且使“野句柄”出现的几率降至最低。  阅读全文

posted @ 2007-09-23 23:25 ★ROY★ 阅读(781) | 评论 (2)编辑 收藏