template<typename T>
GameStateAllocator class
Memory pool allocator for game states.
Provides efficient allocation/deallocation for frequently created game state objects.
Public types
-
template<typename U>struct rebind
- using value_type = T
- using pointer = T*
- using const_pointer = const T*
- using reference = T&
- using const_reference = const T&
- using size_type = std::size_t
- using difference_type = std::ptrdiff_t
Public static variables
-
static size_
type POOL_BLOCK_SIZE constexpr
Constructors, destructors, conversion operators
- GameStateAllocator() defaulted
-
template<typename U>GameStateAllocator(const GameStateAllocator<U>&) noexcept
Public functions
-
auto allocate(size_
type n) -> pointer -
void deallocate(pointer p,
size_
type n) noexcept - auto operator==(const GameStateAllocator&) const -> bool noexcept
- auto operator!=(const GameStateAllocator&) const -> bool noexcept