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())
COWReferenceBase(const COWReferenceBase &arg)
void useRefCountOf(const COWReferenceBase &arg)
RefCount *volatile m_pRefCount
void swap(COWReferenceBase &arg)
bool refCountGreaterThanOne() const
void COWRefSwap(T &x, T &y)