From Valve Developer Community
Revision as of 11:26, 13 August 2018 by Pinsplash (talk | contribs) (removed {{orphan}}. this page is now linked to on all pages mentioning it)

(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.