1#ifndef MiscLib__ALIGNEDALLOCATOR_HEADER__
2#define MiscLib__ALIGNEDALLOCATOR_HEADER__
20 template <
class T,
unsigned int Align = DefaultAlignment>
65 std::allocator_traits<std::allocator<void>>::const_void_pointer hint = 0)
67 return (
T*)_mm_malloc(s *
sizeof(
T), Align);
79 return std::numeric_limits<size_type>::max();
85 new (
static_cast<void*
>(p))
T(val);
123 template <
unsigned int Align = sizeof(
size_t)>
pointer allocate(size_type s, std::allocator_traits< std::allocator< void > >::const_void_pointer hint=0)
void deallocate(pointer p, size_type)
bool operator!=(const AlignedAllocator< U, Align > &) const
void construct(pointer p, const T &val)
pointer address(reference x) const
AlignedAllocator(const AlignedAllocator< U, Align > &)
const_pointer address(const_reference x) const
bool operator==(const AlignedAllocator< U, Align > &) const
bool operator==(const U &) const
size_type max_size() const
ptrdiff_t difference_type
bool operator!=(const U &) const
const T & const_reference
AlignedAllocator(const AlignedAllocator< T, Align > &)
This file offers overloads of toIce() and fromIce() functions for STL container types.
AlignedAllocator< U, Align > other