KTL
|
An allocator which does nothing. Useful for debugging composite allocators, like ensuring a specific path in a composite allocator is not used. More...
#include <null_allocator.h>
Public Member Functions | |
null_allocator () noexcept=default | |
null_allocator (const null_allocator &) noexcept=default | |
null_allocator (null_allocator &&) noexcept=default | |
null_allocator & | operator= (const null_allocator &) noexcept=default |
null_allocator & | operator= (null_allocator &&) noexcept=default |
bool | operator== (const null_allocator &rhs) const noexcept |
bool | operator!= (const null_allocator &rhs) const noexcept |
void * | allocate (size_t n) noexcept |
void | deallocate (void *p, size_t n) noexcept |
bool | owns (void *p) const noexcept |
An allocator which does nothing. Useful for debugging composite allocators, like ensuring a specific path in a composite allocator is not used.
|
defaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |