From Valve Developer Community
Revision as of 18:06, 9 August 2006 by Ts2do (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.