RefCounted — Objects eligible for intrusive refcounting should inherit from this class.
class RefCounted {
public:
// construct/copy/destruct
RefCounted();
RefCounted(const RefCounted &);
~RefCounted();
// public member functions
int decRefCnt() const;
void incRefCnt() const;
int getRefCnt() const;
};