22template<
typename T,
size_t Alignment>
37 template<
typename Type2>
45 template<
typename Type2>
57 return std::numeric_limits<size_type>::max() /
sizeof(
value_type);
65 return static_cast<pointer>(rtl_allocateAlignedMemory(Alignment,
n*
sizeof(
value_type)));
70 rtl_freeAlignedMemory(
p);
Custom allocator for STL container to ensure that the base address of allocated storage is aligned to...
static size_type max_size()
AlignedAllocator(const AlignedAllocator< Type2, Alignment > &)
bool operator!=(const AlignedAllocator &) const
static pointer allocate(size_type n)
static void deallocate(pointer p, size_type)
const T & const_reference
static void destroy(T *p)
std::ptrdiff_t difference_type
static void construct(T *p, const value_type &val)
bool operator==(const AlignedAllocator &) const
CAUTION! The following defines must be in the same namespace as the respective type.
AlignedAllocator< Type2, Alignment > other