9 template <
typename T, std::
size_t Alignment>
28 return (static_cast<std::size_t>(0) - static_cast<std::size_t>(1)) /
sizeof(
T);
40 void*
const pv =
static_cast<void*
>(
p);
81 throw std::length_error(
"aligned_allocator<T>::allocate() - Integer overflow.");
85 void*
const pv = std::aligned_alloc(
Alignment,
n *
sizeof(
T));
89 throw std::bad_alloc();
92 return static_cast<T*
>(
pv);
bool operator!=(const aligned_allocator &other) const
T * allocate(const std::size_t n) const
void deallocate(T *const p, const std::size_t n) const
aligned_allocator(const aligned_allocator &)
T * allocate(const std::size_t n, const U *) const
std::size_t max_size() const
ptrdiff_t difference_type
aligned_allocator(const aligned_allocator< U, Alignment > &)
aligned_allocator & operator=(const aligned_allocator &)
void construct(T *const p)
void construct(T *const p, const T &t) const
void destroy(T *const p) const
aligned_allocator< U, Alignment > other
const T * address(const T &s) const
bool operator==(const aligned_allocator &other) const
const T & const_reference