10 #ifndef INCLUDED_SC_INC_STLALGORITHM_HXX
11 #define INCLUDED_SC_INC_STLALGORITHM_HXX
15 #include <rtl/alloc.h>
23 template<
typename T,
size_t Alignment>
38 template<
typename Type2>
46 template<
typename Type2>
58 return std::numeric_limits<size_type>::max() /
sizeof(
value_type);
66 return static_cast<pointer
>(rtl_allocateAlignedMemory(Alignment, n*
sizeof(value_type)));
71 rtl_freeAlignedMemory(p);
AlignedAllocator< Type2, Alignment > other
AlignedAllocator(const AlignedAllocator< Type2, Alignment > &)
std::ptrdiff_t difference_type
static void destroy(T *p)
bool operator!=(const AlignedAllocator &) const
static pointer allocate(size_type n)
bool operator==(const AlignedAllocator &) const
static void construct(T *p, const value_type &val)
const T & const_reference
Custom allocator for STL container to ensure that the base address of allocated storage is aligned to...
static void deallocate(pointer p, size_type)
static size_type max_size()