returnptr_; } longUseCount()const{ if(ptr_){ returnrel_->GetCount(); }else{ return0; } } T& operator*()const{ return*ptr_; } T* operator->()const{ returnptr_; } operatorbool()const{ returnptr_; } private: T *ptr_; SharedCount *rel_; }; intmain(){ SharedPtr<int> sp1(...