A fixed-capacity object pool. More...
#include <iris/core/object_pool.h>
Public Member Functions | |
ObjectPool ()=default | |
ObjectPool (ObjectPool &&other) | |
~ObjectPool () | |
auto | operator= (ObjectPool &&other) -> ObjectPool & |
void | clear () |
auto | allocate () -> Expected< T & > |
void | deallocate (T &object) |
Static Public Member Functions | |
static auto | create (usize requested_capacity) -> Expected< ObjectPool > |
A fixed-capacity object pool.
T | The type of the objects to be stored in the pool. T must be derived from di::IntrusiveListNode<> and be default constructible. |
Alloc | The allocator to be used to allocate the pool's storage. |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |