4 ms·
At least he's using std::make_shared<> rather than allocating twice for each object. Though it would be interesting to see what sort of difference there is usi
by daemin 12y ago
At least he's using std::make_shared<> rather than allocating twice for each object.
Though it would be interesting to see what sort of difference there is using make_shared<>(...) vs shared_ptr(new ...).
And also what difference there would be when the vector needs to be resized and the objects are noexcept movable or need to be copied.