34 static_assert(std::numeric_limits<T_integral>::is_signed,
"Reference counter must be a signed integer");
45 operator T_integral
const ()
const {
return count_;}
48 T_integral
const inc(){
51 T_integral
const dec(){
ref_counter is a reference counter.
ref_counter(const ref_counter &a)
ref_counter(T_integral x=0)
T_integral const operator++(int)
ref_counter & operator=(const ref_counter &a)
T_integral const disable_count()
T_integral const operator++()
T_integral const enable_count()
T_integral const operator--()
T_integral const operator--(int)
T_integral const set(T_integral const a)