C++ (Qt)my_any(shared.get());
C++ (Qt)void DoSomething( const SomeData * data );void DoSomething( shared_ptr<SomeData> data );
C++ (Qt)void DoSomething( SomeData * data ){ ... delete data;}
C++ (Qt)void DoSomething( SomeData *& data ){ ... delete data; data = new ... // data = 0; }
C++ (Qt)// вызывающийDoSomething(theSharedData.get());
C++ (Qt)void DoSomething( SomeClass & some_object ){ delete &some_object;}