|
RADLib
RADical C++ application framework
|
Standard-compatible allocator backed by RADMonotonicArena. More...
#include <RADDataStructures.h>
Classes | |
| struct | rebind |
| Rebinds the allocator to another value type. More... | |
Public Types | |
| using | value_type = T |
Public Member Functions | |
| RADMonotonicAllocator ()=default | |
| Creates an allocator without an arena; allocations use std::allocator. More... | |
| RADMonotonicAllocator (RADMonotonicArena *arena) | |
| Creates an allocator using arena. More... | |
| template<typename U > | |
| RADMonotonicAllocator (const RADMonotonicAllocator< U > &other) | |
| Converts from another monotonic allocator type. More... | |
| T * | allocate (size_t n) |
| Allocates n objects. More... | |
| void | deallocate (T *ptr, size_t n) |
| No-op for arena allocations; std fallback deallocates normally. More... | |
| RADMonotonicArena * | arena () const |
| Returns backing arena. More... | |
Friends | |
| template<typename U > | |
| class | RADMonotonicAllocator |
Standard-compatible allocator backed by RADMonotonicArena.
| using RADData::RADMonotonicAllocator< T >::value_type = T |
|
default |
Creates an allocator without an arena; allocations use std::allocator.
|
inlineexplicit |
Creates an allocator using arena.
|
inline |
Converts from another monotonic allocator type.
|
inline |
Allocates n objects.
|
inline |
Returns backing arena.
|
inline |
No-op for arena allocations; std fallback deallocates normally.