传递shared_ptr的最佳做法是什么?
目前我传递shared_ptr函数参数,如下所示:
void function1( shared_ptr<TYPE>& value );
c++ shared-ptr
c++ ×1
shared-ptr ×1