astrotypes
0.0
|
Minimal allocator. More...
#include <src/cpp/pss/astrotypes/multiarray/StandardAllocator.h>
Public Types | |
using | value_type = LocalType |
Public Member Functions | |
StandardAllocator () noexcept=default | |
template<typename OtherType > | |
StandardAllocator (StandardAllocator< OtherType > const &) noexcept | |
value_type * | allocate (std::size_t size) |
Allocate an area of contiguos memory. More... | |
void | deallocate (value_type *pointer, std::size_t) noexcept |
Free a previously allocated memory area. More... | |
Minimal allocator.
Definition at line 39 of file StandardAllocator.h.
using pss::astrotypes::StandardAllocator< LocalType >::value_type = LocalType |
Definition at line 42 of file StandardAllocator.h.
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 45 of file StandardAllocator.h.
|
inline |
Allocate an area of contiguos memory.
size | Number of elements that the allocated memory area should fit |
Definition at line 52 of file StandardAllocator.h.
|
inlinenoexcept |
Free a previously allocated memory area.
pointer | Pointer to the memory area to deallocate |
size | Number of elements that the allocated memory area should fit |
Definition at line 61 of file StandardAllocator.h.