79 operator bool() {
return object !=
nullptr;}
80 operator bool()
const {
return object !=
nullptr;}
135 void dec_ref(
const T *
p)
139 if (
p->dec_ref() == 0)
146 void inc_ref(
const T *
p)
shared_ptr(const shared_ptr< U > &cc)
const_pointer get() const
const T & const_reference
shared_ptr(const shared_ptr< T > &cc)
shared_ptr & operator=(const shared_ptr &rhs)
const_pointer operator->() const
shared_ptr & operator=(const shared_ptr< U > &rhs)
bool operator==(const shared_ptr< T > &p, std::nullptr_t)
bool operator!=(const shared_ptr< T > &p, std::nullptr_t)