1 #ifndef jb_fftw_allocator_hpp 2 #define jb_fftw_allocator_hpp 35 const_pointer
address(T
const&
object)
const {
39 return std::numeric_limits<std::size_t>::max();
41 template <
typename... Args>
43 new (
static_cast<void*
>(p)) T(std::forward<Args>(args)...);
48 pointer
allocate(size_type count,
const void* = 0) {
49 return reinterpret_cast<T*
>(fftw_malloc(count *
sizeof(T)));
52 fftw_free(static_cast<void*>(p));
59 return not(*
this == rhs);
66 #endif // jb_fftw_allocator_hpp const_pointer address(T const &object) const
bool operator==(allocator const &rhs) const
value_type const * const_pointer
void const * const_void_pointer
void deallocate(pointer p, size_type count)
std::ptrdiff_t difference_type
pointer allocate(size_type count, const void *=0)
pointer address(T &object) const
Define an allocator based on fftw_malloc()/fftw_free()
void construct(pointer p, Args &&... args)
size_type max_size() const
bool operator!=(allocator const &rhs) const
The top-level namespace for the JayBeams library.