Typedef wrench::ObjectPoolAllocator

Typedef Documentation

template<typename T, typename LockingPolicy = VoidLock, typename Arena = HeapArena>
using wrench::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.