return*ptr_; } T* operator->()const{ returnptr_; } operatorbool()const{ returnptr_; } private: T *ptr_; SharedCount *rel_; }; intmain(){ SharedPtr<int> sp1(newint(5)); SharedPtr<int> sp2; std::cout <<"sp1.use_count: "<< sp1.UseCount() << std::endl; std::cout <<...