|
nngn
|
#include <cstddef>

Go to the source code of this file.
Classes | |
| struct | nngn::allocator_opts |
| Configuration object for allocator_base. More... | |
| struct | nngn::allocator_base< T, o > |
| Base class for allocators, implements a few basic operations. More... | |
Namespaces | |
| namespace | nngn |
| namespace | nngn::detail |
Typedefs | |
| template<typename T > | |
| using | nngn::stateless_allocator = allocator_base<T, allocator_opts{.is_always_equal = true}> |
| Base class for allocators that have no state. | |
| template<typename T > | |
| using | nngn::stateful_allocator = allocator_base<T, allocator_opts{.is_always_equal = false}> |
| Base class for allocators that have state. | |
Functions | |
| template<typename T , allocator_opts o> | |
| bool | nngn::operator== (const allocator_base< T, o > &, const allocator_base< T, o > &) |
| template<typename T , allocator_opts o> | |
| bool | nngn::operator!= (const allocator_base< T, o > &, const allocator_base< T, o > &) |
Variables | |
| template<typename A > | |
| static constexpr bool | nngn::detail::has_realloc |
| Checks whether an allocator supports memory relocation. | |
| template<typename A , typename T > | |
| static constexpr bool | nngn::detail::has_typed_alloc |
| Checks whether an allocator supports typed memory allocations. | |