📜  向量的 shared_ptr c++ push_back - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:47.086000             🧑  作者: Mango

代码示例1
// Declare vector of shared_ptr objects
std::vector> Entities;
// Instantiate object as a shared_ptr and immediately push to vector
Entities.push_back(std::make_shared());