A fixed-capacity, allocation-free container holding a pool of objects which get reused on acquire/release without destruction. Useful for handling recyclable objects which should only be initialized once but can be marked inactive and reused without re-creation.
More...
template<PoolObject T, u32 N>
class red::FixedObjectPool< T, N >
A fixed-capacity, allocation-free container holding a pool of objects which get reused on acquire/release without destruction. Useful for handling recyclable objects which should only be initialized once but can be marked inactive and reused without re-creation.
- Template Parameters
-
| T | The type of object to hold. |
| N | Maximum capacity of the pool. |
Insertion: O(1), Removal: O(1).