GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::Allocation< T, Allocator > Class Template Reference

#include <GREM/core/data/Allocation.hpp>

Public Types

using value_type = T
using allocator_type = Allocator
using size_type = std::size_t
using difference_type = std::ptrdiff_t
using reference = T&
using const_reference = const T&
using pointer = typename std::allocator_traits<Allocator>::pointer
using const_pointer = typename std::allocator_traits<Allocator>::const_pointer
using iterator = pointer
using const_iterator = const_pointer
using reverse_iterator = std::reverse_iterator<iterator>
using const_reverse_iterator = std::reverse_iterator<const_iterator>

Public Member Functions

constexpr Allocation () noexcept=default
constexpr Allocation (const Allocator &allocator) noexcept
constexpr Allocation (size_type count, const Allocator &allocator=Allocator())
constexpr Allocation (size_type count, const T &value, const Allocator &allocator=Allocator())
template<std::input_iterator InputIterator>
constexpr Allocation (InputIterator first, size_type count, const Allocator &allocator=Allocator())
template<std::random_access_iterator RandomAccessIterator, std::sentinel_for< RandomAccessIterator > Sentinel>
constexpr Allocation (RandomAccessIterator first, Sentinel last, const Allocator &allocator=Allocator())
constexpr Allocation (const Allocation &other)
constexpr Allocation (const Allocation &other, const Allocator &allocator)
constexpr Allocation (Allocation &&other) noexcept
constexpr Allocation (Allocation &&other, const Allocator &allocator) noexcept
constexpr Allocation (std::initializer_list< T > ilist, const Allocator &allocator=Allocator())
constexpr ~Allocation ()
constexpr Allocation & operator= (const Allocation &other)
constexpr Allocation & operator= (Allocation &&other) noexcept(std::allocator_traits< Allocator >::propagate_on_container_move_assignment::value||//NOLINT(cppcoreguidelines-noexcept-move-operations, performance-noexcept-move-constructor) std::allocator_traits< Allocator >::is_always_equal::value)
constexpr Allocation & operator= (std::initializer_list< T > ilist)
constexpr void assign (size_type count, const T &value)
template<std::input_iterator InputIterator>
constexpr void assign (InputIterator first, size_type count)
template<std::random_access_iterator RandomAccessIterator, std::sentinel_for< RandomAccessIterator > Sentinel>
constexpr void assign (RandomAccessIterator first, Sentinel last)
constexpr void assign (std::initializer_list< T > ilist)
template<typename R>
constexpr void assign_range (R &&r)
constexpr void clear () noexcept
constexpr void resize (size_type count)
constexpr void resize (size_type count, const T &value)
constexpr allocator_type get_allocator () const noexcept
constexpr reference at (size_type pos)
constexpr const_reference at (size_type pos) const
constexpr reference operator[] (size_type pos)
constexpr const_reference operator[] (size_type pos) const
constexpr reference front ()
constexpr const_reference front () const
constexpr reference back ()
constexpr const_reference back () const
constexpr pointer data () noexcept
constexpr const_pointer data () const noexcept
constexpr iterator begin () noexcept
constexpr const_iterator begin () const noexcept
constexpr const_iterator cbegin () const noexcept
constexpr iterator end () noexcept
constexpr const_iterator end () const noexcept
constexpr const_iterator cend () const noexcept
constexpr reverse_iterator rbegin () noexcept
constexpr const_reverse_iterator rbegin () const noexcept
constexpr const_reverse_iterator crbegin () const noexcept
constexpr reverse_iterator rend () noexcept
constexpr const_reverse_iterator rend () const noexcept
constexpr const_reverse_iterator crend () const noexcept
constexpr bool empty () const noexcept
constexpr size_type size () const noexcept
constexpr size_type max_size () const noexcept
constexpr void fill (const T &value)
constexpr void swap (Allocation &other) noexcept(std::allocator_traits< Allocator >::is_always_equal::value)
constexpr bool operator== (const Allocation &other) const
constexpr bool operator< (const Allocation &other) const
constexpr bool operator<= (const Allocation &other) const
constexpr bool operator> (const Allocation &other) const
constexpr bool operator>= (const Allocation &other) const
constexpr pointer release () noexcept

Friends

constexpr void swap (Allocation &a, Allocation &b) noexcept(noexcept(a.swap(b)))

Member Typedef Documentation

◆ value_type

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::value_type = T

◆ allocator_type

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::allocator_type = Allocator

◆ size_type

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::size_type = std::size_t

◆ difference_type

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::difference_type = std::ptrdiff_t

◆ reference

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::reference = T&

◆ const_reference

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::const_reference = const T&

◆ pointer

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::pointer = typename std::allocator_traits<Allocator>::pointer

◆ const_pointer

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::const_pointer = typename std::allocator_traits<Allocator>::const_pointer

◆ iterator

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::iterator = pointer

◆ const_iterator

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::const_iterator = const_pointer

◆ reverse_iterator

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::reverse_iterator = std::reverse_iterator<iterator>

◆ const_reverse_iterator

template<typename T, typename Allocator = std::allocator<T>>
using grem::Allocation< T, Allocator >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Constructor & Destructor Documentation

◆ Allocation() [1/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( )
constexprdefaultnoexcept

◆ Allocation() [2/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( const Allocator & allocator)
inlineexplicitconstexprnoexcept

◆ Allocation() [3/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( size_type count,
const Allocator & allocator = Allocator() )
inlineexplicitconstexpr

◆ Allocation() [4/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( size_type count,
const T & value,
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ Allocation() [5/11]

template<typename T, typename Allocator = std::allocator<T>>
template<std::input_iterator InputIterator>
grem::Allocation< T, Allocator >::Allocation ( InputIterator first,
size_type count,
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ Allocation() [6/11]

template<typename T, typename Allocator = std::allocator<T>>
template<std::random_access_iterator RandomAccessIterator, std::sentinel_for< RandomAccessIterator > Sentinel>
grem::Allocation< T, Allocator >::Allocation ( RandomAccessIterator first,
Sentinel last,
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ Allocation() [7/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( const Allocation< T, Allocator > & other)
inlineconstexpr

◆ Allocation() [8/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( const Allocation< T, Allocator > & other,
const Allocator & allocator )
inlineconstexpr

◆ Allocation() [9/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( Allocation< T, Allocator > && other)
inlineconstexprnoexcept

◆ Allocation() [10/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( Allocation< T, Allocator > && other,
const Allocator & allocator )
inlineconstexprnoexcept

◆ Allocation() [11/11]

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::Allocation ( std::initializer_list< T > ilist,
const Allocator & allocator = Allocator() )
inlineconstexpr

◆ ~Allocation()

template<typename T, typename Allocator = std::allocator<T>>
grem::Allocation< T, Allocator >::~Allocation ( )
inlineconstexpr

Member Function Documentation

◆ operator=() [1/3]

template<typename T, typename Allocator = std::allocator<T>>
Allocation & grem::Allocation< T, Allocator >::operator= ( const Allocation< T, Allocator > & other)
inlineconstexpr

◆ operator=() [2/3]

template<typename T, typename Allocator = std::allocator<T>>
Allocation & grem::Allocation< T, Allocator >::operator= ( Allocation< T, Allocator > && other)
inlineconstexprnoexcept

◆ operator=() [3/3]

template<typename T, typename Allocator = std::allocator<T>>
Allocation & grem::Allocation< T, Allocator >::operator= ( std::initializer_list< T > ilist)
inlineconstexpr

◆ assign() [1/4]

template<typename T, typename Allocator = std::allocator<T>>
void grem::Allocation< T, Allocator >::assign ( size_type count,
const T & value )
inlineconstexpr

◆ assign() [2/4]

template<typename T, typename Allocator = std::allocator<T>>
template<std::input_iterator InputIterator>
void grem::Allocation< T, Allocator >::assign ( InputIterator first,
size_type count )
inlineconstexpr

◆ assign() [3/4]

template<typename T, typename Allocator = std::allocator<T>>
template<std::random_access_iterator RandomAccessIterator, std::sentinel_for< RandomAccessIterator > Sentinel>
void grem::Allocation< T, Allocator >::assign ( RandomAccessIterator first,
Sentinel last )
inlineconstexpr

◆ assign() [4/4]

template<typename T, typename Allocator = std::allocator<T>>
void grem::Allocation< T, Allocator >::assign ( std::initializer_list< T > ilist)
inlineconstexpr

◆ assign_range()

template<typename T, typename Allocator = std::allocator<T>>
template<typename R>
void grem::Allocation< T, Allocator >::assign_range ( R && r)
inlineconstexpr

◆ clear()

template<typename T, typename Allocator = std::allocator<T>>
void grem::Allocation< T, Allocator >::clear ( )
inlineconstexprnoexcept

◆ resize() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
void grem::Allocation< T, Allocator >::resize ( size_type count)
inlineconstexpr

◆ resize() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
void grem::Allocation< T, Allocator >::resize ( size_type count,
const T & value )
inlineconstexpr

◆ get_allocator()

template<typename T, typename Allocator = std::allocator<T>>
allocator_type grem::Allocation< T, Allocator >::get_allocator ( ) const
inlinenodiscardconstexprnoexcept

◆ at() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
reference grem::Allocation< T, Allocator >::at ( size_type pos)
inlinenodiscardconstexpr

◆ at() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_reference grem::Allocation< T, Allocator >::at ( size_type pos) const
inlinenodiscardconstexpr

◆ operator[]() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
reference grem::Allocation< T, Allocator >::operator[] ( size_type pos)
inlinenodiscardconstexpr

◆ operator[]() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_reference grem::Allocation< T, Allocator >::operator[] ( size_type pos) const
inlinenodiscardconstexpr

◆ front() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
reference grem::Allocation< T, Allocator >::front ( )
inlinenodiscardconstexpr

◆ front() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_reference grem::Allocation< T, Allocator >::front ( ) const
inlinenodiscardconstexpr

◆ back() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
reference grem::Allocation< T, Allocator >::back ( )
inlinenodiscardconstexpr

◆ back() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_reference grem::Allocation< T, Allocator >::back ( ) const
inlinenodiscardconstexpr

◆ data() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
pointer grem::Allocation< T, Allocator >::data ( )
inlinenodiscardconstexprnoexcept

◆ data() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_pointer grem::Allocation< T, Allocator >::data ( ) const
inlinenodiscardconstexprnoexcept

◆ begin() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
iterator grem::Allocation< T, Allocator >::begin ( )
inlinenodiscardconstexprnoexcept

◆ begin() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_iterator grem::Allocation< T, Allocator >::begin ( ) const
inlinenodiscardconstexprnoexcept

◆ cbegin()

template<typename T, typename Allocator = std::allocator<T>>
const_iterator grem::Allocation< T, Allocator >::cbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ end() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
iterator grem::Allocation< T, Allocator >::end ( )
inlinenodiscardconstexprnoexcept

◆ end() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_iterator grem::Allocation< T, Allocator >::end ( ) const
inlinenodiscardconstexprnoexcept

◆ cend()

template<typename T, typename Allocator = std::allocator<T>>
const_iterator grem::Allocation< T, Allocator >::cend ( ) const
inlinenodiscardconstexprnoexcept

◆ rbegin() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
reverse_iterator grem::Allocation< T, Allocator >::rbegin ( )
inlinenodiscardconstexprnoexcept

◆ rbegin() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_reverse_iterator grem::Allocation< T, Allocator >::rbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ crbegin()

template<typename T, typename Allocator = std::allocator<T>>
const_reverse_iterator grem::Allocation< T, Allocator >::crbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ rend() [1/2]

template<typename T, typename Allocator = std::allocator<T>>
reverse_iterator grem::Allocation< T, Allocator >::rend ( )
inlinenodiscardconstexprnoexcept

◆ rend() [2/2]

template<typename T, typename Allocator = std::allocator<T>>
const_reverse_iterator grem::Allocation< T, Allocator >::rend ( ) const
inlinenodiscardconstexprnoexcept

◆ crend()

template<typename T, typename Allocator = std::allocator<T>>
const_reverse_iterator grem::Allocation< T, Allocator >::crend ( ) const
inlinenodiscardconstexprnoexcept

◆ empty()

template<typename T, typename Allocator = std::allocator<T>>
bool grem::Allocation< T, Allocator >::empty ( ) const
inlinenodiscardconstexprnoexcept

◆ size()

template<typename T, typename Allocator = std::allocator<T>>
size_type grem::Allocation< T, Allocator >::size ( ) const
inlinenodiscardconstexprnoexcept

◆ max_size()

template<typename T, typename Allocator = std::allocator<T>>
size_type grem::Allocation< T, Allocator >::max_size ( ) const
inlinenodiscardconstexprnoexcept

◆ fill()

template<typename T, typename Allocator = std::allocator<T>>
void grem::Allocation< T, Allocator >::fill ( const T & value)
inlineconstexpr

◆ swap()

template<typename T, typename Allocator = std::allocator<T>>
void grem::Allocation< T, Allocator >::swap ( Allocation< T, Allocator > & other)
inlineconstexprnoexcept

◆ operator==()

template<typename T, typename Allocator = std::allocator<T>>
bool grem::Allocation< T, Allocator >::operator== ( const Allocation< T, Allocator > & other) const
inlinenodiscardconstexpr

◆ operator<()

template<typename T, typename Allocator = std::allocator<T>>
bool grem::Allocation< T, Allocator >::operator< ( const Allocation< T, Allocator > & other) const
inlinenodiscardconstexpr

◆ operator<=()

template<typename T, typename Allocator = std::allocator<T>>
bool grem::Allocation< T, Allocator >::operator<= ( const Allocation< T, Allocator > & other) const
inlinenodiscardconstexpr

◆ operator>()

template<typename T, typename Allocator = std::allocator<T>>
bool grem::Allocation< T, Allocator >::operator> ( const Allocation< T, Allocator > & other) const
inlinenodiscardconstexpr

◆ operator>=()

template<typename T, typename Allocator = std::allocator<T>>
bool grem::Allocation< T, Allocator >::operator>= ( const Allocation< T, Allocator > & other) const
inlinenodiscardconstexpr

◆ release()

template<typename T, typename Allocator = std::allocator<T>>
pointer grem::Allocation< T, Allocator >::release ( )
inlineconstexprnoexcept

◆ swap

template<typename T, typename Allocator = std::allocator<T>>
void swap ( Allocation< T, Allocator > & a,
Allocation< T, Allocator > & b )
friend

The documentation for this class was generated from the following file: