Add reserve to object pool.

This commit is contained in:
Hans-Kristian Arntzen 2024-01-18 11:54:24 +01:00
parent 64f64c837a
commit c0f48374c7

View File

@ -576,6 +576,7 @@ public:
if (!ptr)
return nullptr;
vacants.reserve(num_objects);
for (unsigned i = 0; i < num_objects; i++)
vacants.push_back(&ptr[i]);