Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
他们做类似的事情。
在两者之间进行选择时应该考虑什么?
在哪种情况下是首选?
我更喜欢std::vector<std::unique_ptr<T>>有几个原因:
std::vector<std::unique_ptr<T>>
boost::ptr_vector
ptr_vector
std::vector<void*>
std::unique_ptr