CXAutoReferenceNotThreadSafe

From cxwiki

Revision as of 06:15, 23 February 2018 by Windwalkr (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The CXAutoReferenceNotThreadSafe templated class is a trivial variant of CXAutoReference which forgoes any thread safety mechanisms if favor of raw performance. The referenced object must expose a specific reference counting interface- typically this is achieved by inheriting from DynamicReferenceCount but other techniques are permitted.
 
CXAutoReferenceNotThreadSafe<T> is designed to act in a manner syntactically equivalent to T* where possible.