Typedef wrench::ObjectPoolAllocator¶
Defined in File allocator.hpp
Typedef Documentation¶
-
template<typename
T
, typenameLockingPolicy
= VoidLock, typenameArena
= HeapArena>
usingwrench
::
ObjectPoolAllocator
= Allocator<PoolAllocator<sizeof(T), std::max(alignof(T), alignof(Freelist)), Freelist>, Arena, AlignedHeapAllocator, LockingPolicy>¶ Defines an object pool allocator for objects of type T, which is by default not thread safe.
- Template Parameters
T
: The type of the objects to allocate from the pool.LockingPolicy
: The locking policy for the allocator.Arena
: The arena for the allocator.