FE 0.6.0
A header-only C++ library for writing frontends
|
An allocator in order to use this Arena for containers. More...
#include <fe/arena.h>
Public Types | |
using | value_type = T |
Public Member Functions | |
Allocator ()=delete | |
template<class U > | |
constexpr | Allocator (const Arena::Allocator< U > &allocator) noexcept |
constexpr | Allocator (Arena &arena) noexcept |
constexpr T * | allocate (size_t num_elems) |
constexpr void | deallocate (T *, size_t) noexcept |
template<class U > | |
constexpr bool | operator== (const Allocator< U > &a) const noexcept |
template<class U > | |
constexpr bool | operator!= (const Allocator< U > &a) const noexcept |
Public Attributes | |
Arena & | arena |
An allocator in order to use this Arena for containers.
Construct it via Arena::allocator.
using fe::Arena::Allocator< T >::value_type = T |
|
delete |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenodiscardconstexpr |
Definition at line 36 of file arena.h.
References fe::Arena::allocate(), and fe::Arena::Allocator< T >::arena.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Definition at line 41 of file arena.h.
References fe::Arena::Allocator< T >::arena.
|
inlineconstexprnoexcept |
Definition at line 40 of file arena.h.
References fe::Arena::Allocator< T >::arena.
Arena& fe::Arena::Allocator< T >::arena |
Definition at line 43 of file arena.h.
Referenced by fe::Arena::Allocator< T >::allocate(), fe::Arena::Allocator< T >::operator!=(), and fe::Arena::Allocator< T >::operator==().