RAII wrapper for memory pool allocations. More...
#include <memory_pool.h>
Public Types | |
| 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 Member Functions | |
| PoolAllocator ()=default | |
| template<typename U > | |
| PoolAllocator (const PoolAllocator< U > &) | |
| pointer | allocate (size_type n) |
| void | deallocate (pointer p, size_type) |
| template<typename U > | |
| bool | operator== (const PoolAllocator< U > &) const |
| template<typename U > | |
| bool | operator!= (const PoolAllocator< U > &) const |
RAII wrapper for memory pool allocations.
| T | Type of object to allocate |
Definition at line 128 of file memory_pool.h.
| using yaze::gfx::PoolAllocator< T >::value_type = T |
Definition at line 130 of file memory_pool.h.
| using yaze::gfx::PoolAllocator< T >::pointer = T* |
Definition at line 131 of file memory_pool.h.
| using yaze::gfx::PoolAllocator< T >::const_pointer = const T* |
Definition at line 132 of file memory_pool.h.
| using yaze::gfx::PoolAllocator< T >::reference = T& |
Definition at line 133 of file memory_pool.h.
| using yaze::gfx::PoolAllocator< T >::const_reference = const T& |
Definition at line 134 of file memory_pool.h.
| using yaze::gfx::PoolAllocator< T >::size_type = std::size_t |
Definition at line 135 of file memory_pool.h.
| using yaze::gfx::PoolAllocator< T >::difference_type = std::ptrdiff_t |
Definition at line 136 of file memory_pool.h.
|
default |
|
inline |
Definition at line 140 of file memory_pool.h.
|
inline |
Definition at line 142 of file memory_pool.h.
References yaze::gfx::MemoryPool::Allocate(), and yaze::gfx::MemoryPool::Get().

|
inline |
Definition at line 146 of file memory_pool.h.
References yaze::gfx::MemoryPool::Deallocate(), and yaze::gfx::MemoryPool::Get().

|
inline |
Definition at line 149 of file memory_pool.h.
|
inline |
Definition at line 154 of file memory_pool.h.