mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-08 13:20:06 +00:00
Add reserve to object pool.
This commit is contained in:
parent
64f64c837a
commit
c0f48374c7
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user