我知道将static_pointer_cast与unique_ptr一起使用会导致所包含数据的共享所有权。 换句话说,我想做的是:unique_ptr<Base> foo = fooFactory(); // do something for ...
確定! 回上一頁