neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::reserve_allocator< T, N, Instance > Class Template Reference

#include <allocator.hpp>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef Tpointer
 
typedef Treference
 
typedef const Tconst_pointer
 
typedef const Tconst_reference
 
typedef std::size_t size_type
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 reserve_allocator ()
 
 reserve_allocator (const reserve_allocator &rhs)
 
template<typename U >
 reserve_allocator (const reserve_allocator< U, N, Instance > &rhs)
 
 ~reserve_allocator ()
 
Tallocate (size_type aCount=1)
 
void deallocate (T *aObject, size_type aCount=1)
 
void construct (pointer aObject, const_reference val)
 
void destroy (pointer aObject)
 
size_type max_size () const
 
bool operator== (const reserve_allocator &) const
 
bool operator!= (const reserve_allocator &) const
 

Detailed Description

template<typename T, std::size_t N, std::size_t Instance = 0>
class neolib::reserve_allocator< T, N, Instance >

Definition at line 275 of file allocator.hpp.

Member Typedef Documentation

◆ const_pointer

template<typename T , std::size_t N, std::size_t Instance = 0>
typedef const T* neolib::reserve_allocator< T, N, Instance >::const_pointer

Definition at line 281 of file allocator.hpp.

◆ const_reference

template<typename T , std::size_t N, std::size_t Instance = 0>
typedef const T& neolib::reserve_allocator< T, N, Instance >::const_reference

Definition at line 282 of file allocator.hpp.

◆ difference_type

template<typename T , std::size_t N, std::size_t Instance = 0>
typedef ptrdiff_t neolib::reserve_allocator< T, N, Instance >::difference_type

Definition at line 284 of file allocator.hpp.

◆ pointer

template<typename T , std::size_t N, std::size_t Instance = 0>
typedef T* neolib::reserve_allocator< T, N, Instance >::pointer

Definition at line 279 of file allocator.hpp.

◆ reference

template<typename T , std::size_t N, std::size_t Instance = 0>
typedef T& neolib::reserve_allocator< T, N, Instance >::reference

Definition at line 280 of file allocator.hpp.

◆ size_type

template<typename T , std::size_t N, std::size_t Instance = 0>
typedef std::size_t neolib::reserve_allocator< T, N, Instance >::size_type

Definition at line 283 of file allocator.hpp.

◆ value_type

template<typename T , std::size_t N, std::size_t Instance = 0>
typedef T neolib::reserve_allocator< T, N, Instance >::value_type

Definition at line 278 of file allocator.hpp.

Constructor & Destructor Documentation

◆ reserve_allocator() [1/3]

template<typename T , std::size_t N, std::size_t Instance = 0>
neolib::reserve_allocator< T, N, Instance >::reserve_allocator ( )
inline

Definition at line 329 of file allocator.hpp.

◆ reserve_allocator() [2/3]

template<typename T , std::size_t N, std::size_t Instance = 0>
neolib::reserve_allocator< T, N, Instance >::reserve_allocator ( const reserve_allocator< T, N, Instance > &  rhs)
inline

Definition at line 330 of file allocator.hpp.

◆ reserve_allocator() [3/3]

template<typename T , std::size_t N, std::size_t Instance = 0>
template<typename U >
neolib::reserve_allocator< T, N, Instance >::reserve_allocator ( const reserve_allocator< U, N, Instance > &  rhs)
inline

Definition at line 332 of file allocator.hpp.

◆ ~reserve_allocator()

template<typename T , std::size_t N, std::size_t Instance = 0>
neolib::reserve_allocator< T, N, Instance >::~reserve_allocator ( )
inline

Definition at line 333 of file allocator.hpp.

Member Function Documentation

◆ allocate()

template<typename T , std::size_t N, std::size_t Instance = 0>
T * neolib::reserve_allocator< T, N, Instance >::allocate ( size_type  aCount = 1)
inline

Definition at line 337 of file allocator.hpp.

◆ construct()

template<typename T , std::size_t N, std::size_t Instance = 0>
void neolib::reserve_allocator< T, N, Instance >::construct ( pointer  aObject,
const_reference  val 
)
inline

Definition at line 351 of file allocator.hpp.

◆ deallocate()

template<typename T , std::size_t N, std::size_t Instance = 0>
void neolib::reserve_allocator< T, N, Instance >::deallocate ( T aObject,
size_type  aCount = 1 
)
inline

Definition at line 344 of file allocator.hpp.

◆ destroy()

template<typename T , std::size_t N, std::size_t Instance = 0>
void neolib::reserve_allocator< T, N, Instance >::destroy ( pointer  aObject)
inline

Definition at line 356 of file allocator.hpp.

◆ max_size()

template<typename T , std::size_t N, std::size_t Instance = 0>
size_type neolib::reserve_allocator< T, N, Instance >::max_size ( ) const
inline

Definition at line 368 of file allocator.hpp.

◆ operator!=()

template<typename T , std::size_t N, std::size_t Instance = 0>
bool neolib::reserve_allocator< T, N, Instance >::operator!= ( const reserve_allocator< T, N, Instance > &  ) const
inline

Definition at line 371 of file allocator.hpp.

◆ operator==()

template<typename T , std::size_t N, std::size_t Instance = 0>
bool neolib::reserve_allocator< T, N, Instance >::operator== ( const reserve_allocator< T, N, Instance > &  ) const
inline

Definition at line 370 of file allocator.hpp.


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