Template Class SmallAllocator

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

template<class T, size_t N = 16, size_t Alignment = alignof(T), class MemResProvider = MemResGlobal>
class SmallAllocator : public c4::detail::_AllocatorUtil<MemResGlobal>

Public Types

using value_type = T
using pointer = T*
using const_pointer = T const*
using reference = T&
using const_reference = T const&
using size_type = size_t
using difference_type = std::ptrdiff_t
using propagate_on_container_move_assigment = std::true_type

Public Functions

template<class U>
inline bool operator==(SmallAllocator<U, N, Alignment, MemResProvider> const&) const
template<class U>
inline bool operator!=(SmallAllocator<U, N, Alignment, MemResProvider> const&) const
template<class U>
inline rebind<U>::other rebound()
inline SmallAllocator()
template<class U, size_t N2, size_t A2, class MP2>
inline SmallAllocator(SmallAllocator<U, N2, A2, MP2> const &that)
SmallAllocator(SmallAllocator const&) = default
SmallAllocator(SmallAllocator&&) = default
SmallAllocator &operator=(SmallAllocator const&) = default
SmallAllocator &operator=(SmallAllocator&&) = default
inline SmallAllocator select_on_container_copy_construct() const

returns a default-constructed polymorphic allocator object

inline T *allocate(size_t num_objs, size_t alignment = Alignment)
inline void deallocate(T *ptr, size_t num_objs, size_t alignment = Alignment)
inline T *reallocate(T *ptr, size_t oldnum, size_t newnum, size_t alignment = Alignment)

Friends

friend class SmallAllocator
template<class U>
struct rebind

Public Types

using other = SmallAllocator<U, N, alignof(U), MemResProvider>