-
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.
转载于:https://www.cnblogs.com/zhtf2014/archive/2011/03/30/1999677.html