Highly Efficient FFT for Exascale: HeFFTe v2.4
|
Allocator to use with heffte::stock::Complex types Class to properly allocate heffte::stock::Complex<F,L> types to ensure proper alignment of the type when using containers like std::vector. More...
#include <heffte_stock_allocator.h>
Classes | |
struct | rebind |
Defining rebind for the allocator. More... | |
Public Member Functions | |
pointer | address (reference r) |
Get address from a reference. | |
const_pointer | address (const_reference r) const |
Get address from a const reference. | |
pointer | allocate (size_type n, void const *=nullptr) |
Define allocation for complex type. | |
void | deallocate (pointer p, size_type) |
Define deallocation for complex type. | |
void | construct (pointer p, const_reference value) |
Copy into pointer. | |
void | destroy (pointer p) |
Destroy a pointer to this type. | |
size_type | max_size () const noexcept |
Define maximum size of an array of this. | |
bool | operator== (const complex_allocator_t &) |
Define == operator. | |
bool | operator!= (const complex_allocator_t &rhs) |
Define != operator. | |
Allocator to use with heffte::stock::Complex types Class to properly allocate heffte::stock::Complex<F,L> types to ensure proper alignment of the type when using containers like std::vector.