TwiceAsNice  2019-02-18
Classes | Public Types | Public Member Functions | List of all members
Basda::Allocator< T > Class Template Reference

#include <CircularBuffer.hh>

Collaboration diagram for Basda::Allocator< T >:
Collaboration graph

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

 Allocator ()
 
 ~Allocator ()
 
 Allocator (Allocator const &)
 
template<typename U >
 Allocator (Allocator< U > const &)
 
pointer address (reference r)
 
const_pointer address (const_reference r)
 
pointer allocate (size_type cnt, typename std::allocator< void >::const_pointer=0)
 
void deallocate (pointer p, size_type)
 
size_type max_size () const
 
void construct (pointer p, const T &t)
 
void destroy (pointer p)
 
bool operator== (Allocator const &)
 
bool operator!= (Allocator const &a)
 

Member Typedef Documentation

◆ const_pointer

template<typename T >
typedef const value_type* Basda::Allocator< T >::const_pointer

◆ const_reference

template<typename T >
typedef const value_type& Basda::Allocator< T >::const_reference

◆ difference_type

template<typename T >
typedef std::ptrdiff_t Basda::Allocator< T >::difference_type

◆ pointer

template<typename T >
typedef value_type* Basda::Allocator< T >::pointer

◆ reference

template<typename T >
typedef value_type& Basda::Allocator< T >::reference

◆ size_type

template<typename T >
typedef std::size_t Basda::Allocator< T >::size_type

◆ value_type

template<typename T >
typedef T Basda::Allocator< T >::value_type

Constructor & Destructor Documentation

◆ Allocator() [1/3]

template<typename T >
Basda::Allocator< T >::Allocator ( )
inlineexplicit

◆ ~Allocator()

template<typename T >
Basda::Allocator< T >::~Allocator ( )
inline

◆ Allocator() [2/3]

template<typename T >
Basda::Allocator< T >::Allocator ( Allocator< T > const )
inlineexplicit

◆ Allocator() [3/3]

template<typename T >
template<typename U >
Basda::Allocator< T >::Allocator ( Allocator< U > const )
inlineexplicit

Member Function Documentation

◆ address() [1/2]

template<typename T >
pointer Basda::Allocator< T >::address ( reference  r)
inline

◆ address() [2/2]

template<typename T >
const_pointer Basda::Allocator< T >::address ( const_reference  r)
inline

◆ allocate()

template<typename T >
pointer Basda::Allocator< T >::allocate ( size_type  cnt,
typename std::allocator< void >::const_pointer  = 0 
)
inline

◆ construct()

template<typename T >
void Basda::Allocator< T >::construct ( pointer  p,
const T &  t 
)
inline

◆ deallocate()

template<typename T >
void Basda::Allocator< T >::deallocate ( pointer  p,
size_type   
)
inline

◆ destroy()

template<typename T >
void Basda::Allocator< T >::destroy ( pointer  p)
inline

◆ max_size()

template<typename T >
size_type Basda::Allocator< T >::max_size ( ) const
inline

◆ operator!=()

template<typename T >
bool Basda::Allocator< T >::operator!= ( Allocator< T > const a)
inline

◆ operator==()

template<typename T >
bool Basda::Allocator< T >::operator== ( Allocator< T > const )
inline

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