From Valve Developer Community
Revision as of 08:32, 16 February 2011 by Thelonesoldier (talk | contribs)

Jump to: navigation, search

Smart pointers can be used to automatically free an object when nobody points at it anymore. Things contained in smart pointers must implement AddRef and Release functions. If those functions are private, then the class must make CRefCountAccessor a friend.