astrotypes
0.0
|
Dummy allocator that stores a pointer to a previously allocated area of memory. More...
#include <src/cpp/pss/astrotypes/multiarray/PointerAllocator.h>
Public Types | |
using | value_type = LocalType |
![]() | |
using | value_type = LocalType |
Public Member Functions | |
PointerAllocator (value_type *pointer) noexcept | |
Construct the allocator from a pointer to previously allocated memory. More... | |
value_type * | allocate (std::size_t) |
Returns a pointer to the previously allocated memory. More... | |
void | deallocate (value_type *, std::size_t) noexcept |
Empty deallocator. More... | |
![]() | |
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... | |
Dummy allocator that stores a pointer to a previously allocated area of memory.
<LocalType>
Definition at line 38 of file PointerAllocator.h.
using pss::astrotypes::PointerAllocator< LocalType >::value_type = LocalType |
Definition at line 41 of file PointerAllocator.h.
|
inlineexplicitnoexcept |
Construct the allocator from a pointer to previously allocated memory.
pointer | Pointer to previously allocated memory |
Definition at line 47 of file PointerAllocator.h.
|
inline |
Returns a pointer to the previously allocated memory.
size | Ignored parameter, here for compatibility with allocate interface |
Definition at line 57 of file PointerAllocator.h.
|
inlinenoexcept |
Empty deallocator.
pointer | Ignored parameter, here for compatibility with allocate interface |
size | Ignored parameter, here for compatibility with allocate interface |
Definition at line 67 of file PointerAllocator.h.