我们都知道,我们可以轻松地将unique_ptr转换为C++中的shared_ptr。但如果我做了这样的转变呢:-shared_ptr<X> s=move(u);遗憾的是,没有release() function in shared_ptr like in unique_ptr,否则我不可能有这样的事情
现在我可以写了 void bar( std::shared_ptr<blub> );}; // Sorts out the largest type so we can allocate enough space
typedef largest<std::shared_ptr<T>, std::uni