14 mutable int ref_count;
16 friend class ref_ptr_tag;
ref_counted()
constructor initializes the count to 0
int get_ref_count() const
read access to current count
void set_ref_count(int c) const
write access is also const to allow ref counted pointers to const instances
struct used to make ref pointers to ref_counted friends of ref_counted
namespace for data management components
this header is dependency free