Ray's playground

 

Item 28: Avoid returning "handles" to object internals.(Effective C++)

  • Avoid returning handles (references, pointers, or iterators) to object internals. It increases encapsulation, helps const member functions act const, and minimizes the creation of dangling handles.

posted on 2011-03-30 12:01  Ray Z  阅读(171)  评论(0编辑  收藏  举报

导航