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

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

Public Types

using value_type = T

Public Member Functions

GREM_ALWAYS_INLINE ArenaAllocator (ArenaResource *arena) noexcept
template<typename U>
GREM_ALWAYS_INLINE ArenaAllocator (const ArenaAllocator< U > &other) noexcept
 ~ArenaAllocator ()=default
 ArenaAllocator (const ArenaAllocator &other) noexcept=default
 ArenaAllocator (ArenaAllocator &&other) noexcept=default
ArenaAllocator & operator= (const ArenaAllocator &other) noexcept=default
ArenaAllocator & operator= (ArenaAllocator &&other) noexcept=default
GREM_ALWAYS_INLINE T * allocate (std::size_t n)
GREM_ALWAYS_INLINE void deallocate (T *, std::size_t) noexcept
template<typename U>
GREM_ALWAYS_INLINE bool operator== (const ArenaAllocator< U > &other) const noexcept

Friends

template<typename U>
class ArenaAllocator

Member Typedef Documentation

◆ value_type

template<typename T>
using grem::ArenaAllocator< T >::value_type = T

Constructor & Destructor Documentation

◆ ArenaAllocator() [1/4]

template<typename T>
GREM_ALWAYS_INLINE grem::ArenaAllocator< T >::ArenaAllocator ( ArenaResource * arena)
inlinenoexcept

◆ ArenaAllocator() [2/4]

template<typename T>
template<typename U>
GREM_ALWAYS_INLINE grem::ArenaAllocator< T >::ArenaAllocator ( const ArenaAllocator< U > & other)
inlinenoexcept

◆ ~ArenaAllocator()

template<typename T>
grem::ArenaAllocator< T >::~ArenaAllocator ( )
default

◆ ArenaAllocator() [3/4]

template<typename T>
grem::ArenaAllocator< T >::ArenaAllocator ( const ArenaAllocator< T > & other)
defaultnoexcept

◆ ArenaAllocator() [4/4]

template<typename T>
grem::ArenaAllocator< T >::ArenaAllocator ( ArenaAllocator< T > && other)
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

template<typename T>
ArenaAllocator & grem::ArenaAllocator< T >::operator= ( const ArenaAllocator< T > & other)
defaultnoexcept

◆ operator=() [2/2]

template<typename T>
ArenaAllocator & grem::ArenaAllocator< T >::operator= ( ArenaAllocator< T > && other)
defaultnoexcept

◆ allocate()

template<typename T>
GREM_ALWAYS_INLINE T * grem::ArenaAllocator< T >::allocate ( std::size_t n)
inlinenodiscard

◆ deallocate()

template<typename T>
GREM_ALWAYS_INLINE void grem::ArenaAllocator< T >::deallocate ( T * ,
std::size_t  )
inlinenoexcept

◆ operator==()

template<typename T>
template<typename U>
GREM_ALWAYS_INLINE bool grem::ArenaAllocator< T >::operator== ( const ArenaAllocator< U > & other) const
inlinenodiscardnoexcept

◆ ArenaAllocator

template<typename T>
template<typename U>
friend class ArenaAllocator
friend

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