KTL
|
A linear allocator which gives out chunks of its allocated stack. Increments a counter during allocation, which makes it very fast but also unlikely to deallocate it again. Has a max allocation size of the Size
given.
More...
#include <stack_allocator.h>
Public Member Functions | |
stack_allocator (stack< Size > &block) noexcept | |
stack_allocator (stack< Size > *block) noexcept | |
stack_allocator (const stack_allocator &) noexcept=default | |
stack_allocator (stack_allocator &&) noexcept=default | |
stack_allocator & | operator= (const stack_allocator &) noexcept=default |
stack_allocator & | operator= (stack_allocator &&) noexcept=default |
bool | operator== (const stack_allocator &rhs) const noexcept |
bool | operator!= (const stack_allocator &rhs) const noexcept |
void * | allocate (size_t n) noexcept |
void | deallocate (void *p, size_t n) noexcept |
size_t | max_size () const noexcept |
bool | owns (void *p) const noexcept |
A linear allocator which gives out chunks of its allocated stack. Increments a counter during allocation, which makes it very fast but also unlikely to deallocate it again. Has a max allocation size of the Size
given.
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |