55 #ifndef HACC_ALIGNEDALLOCATOR_H
56 #define HACC_ALIGNEDALLOCATOR_H
64 template <
typename T,
size_t N>
85 template <
typename U,
size_t M>
105 if (posix_memalign((
void **) &p, N, n*
sizeof(T)) != 0) {
106 throw std::bad_alloc();
Definition: AlignedAllocator.h:66
AlignedAllocator(const AlignedAllocator &)
Definition: AlignedAllocator.h:83
pointer address(reference x) const
Definition: AlignedAllocator.h:92
size_type max_size() const
Definition: AlignedAllocator.h:95
~AlignedAllocator()
Definition: AlignedAllocator.h:89
const_pointer address(const_reference x) const
Definition: AlignedAllocator.h:93
T & reference
Definition: AlignedAllocator.h:70
void destroy(pointer p)
Definition: AlignedAllocator.h:98
AlignedAllocator()
Definition: AlignedAllocator.h:82
const T * const_pointer
Definition: AlignedAllocator.h:71
T * pointer
Definition: AlignedAllocator.h:69
const T & const_reference
Definition: AlignedAllocator.h:72
pointer allocate(size_type n, const void *=0)
Definition: AlignedAllocator.h:101
AlignedAllocator(const AlignedAllocator< U, M > &)
Definition: AlignedAllocator.h:86
ptrdiff_t difference_type
Definition: AlignedAllocator.h:74
T value_type
Definition: AlignedAllocator.h:68
void deallocate(pointer p, size_type n)
Definition: AlignedAllocator.h:112
size_t size_type
Definition: AlignedAllocator.h:73
void construct(pointer p, const_reference val)
Definition: AlignedAllocator.h:97
Definition: AlignedAllocator.h:63
Definition: AlignedAllocator.h:77
AlignedAllocator< U, N > other
Definition: AlignedAllocator.h:78