38 #ifndef BLOCXX_CBLOCXX_REFERENCE_BASE_HPP_INCLUDE_GUARD_ 39 #define BLOCXX_CBLOCXX_REFERENCE_BASE_HPP_INCLUDE_GUARD_ 40 #include "blocxx/BLOCXX_config.h" 67 : m_pRefCount(arg.m_pRefCount)
78 if (m_pRefCount->decAndTest())
88 return m_pRefCount->get() > 1;
94 if (m_pRefCount->decAndTest())
void swap(COWReferenceBase &arg)
RefCount *volatile m_pRefCount
bool refCountGreaterThanOne() const
void useRefCountOf(const COWReferenceBase &arg)
void COWRefSwap(T &x, T &y)
COWReferenceBase(const COWReferenceBase &arg)