Allocator for aligned data.
Modified from the Mallocator from Stephan T. Lavavej. http://blogs.msdn.com/b/vcblog/archive/2008/08/28/the-mallocator.aspx
Public Types
-
typedef T *pointer
-
typedef const T *const_pointer
-
typedef T &reference
-
typedef const T &const_reference
-
typedef T value_type
-
typedef size_t size_type
-
typedef ptrdiff_t difference_type
Public Functions
-
inline T *address(T &r) const
-
inline const T *address(const T &s) const
-
inline size_t max_size() const
-
inline bool operator!=(const AlignedAllocator &other) const
-
inline void construct(T *const p, const T &t) const
-
inline void destroy(T *const p) const
-
inline bool operator==(const AlignedAllocator&) const
-
inline AlignedAllocator()
-
inline AlignedAllocator(const AlignedAllocator&)
-
template<typename U>
inline AlignedAllocator(const AlignedAllocator<U, Alignment>&)
-
inline ~AlignedAllocator()
-
inline T *allocate(size_t n) const
-
inline void deallocate(T *const p, size_t) const
-
template<typename U>
inline T *allocate(size_t n, const U*) const
-
template<typename U>
struct rebind
-