CppCommon  1.0.4.1
C++ Common Library
Classes | Public Types | Public Member Functions | List of all members
CppCommon::Allocator< void, TMemoryManager, nothrow > Class Template Reference

Memory allocator class (void specialization) More...

#include <allocator.h>

Classes

struct  rebind
 Rebind allocator. More...
 

Public Types

typedef void value_type
 Element type. More...
 
typedef void * pointer
 Pointer to element. More...
 
typedef const void * const_pointer
 Pointer to constant element. More...
 
typedef size_t size_type
 Quantities of elements. More...
 
typedef ptrdiff_t difference_type
 Difference between two pointers. More...
 

Public Member Functions

 Allocator (TMemoryManager &manager) noexcept
 
template<typename U >
 Allocator (const Allocator< U, TMemoryManager, nothrow > &alloc) noexcept
 
 Allocator (Allocator &&) noexcept=default
 
 ~Allocator () noexcept=default
 
template<typename U >
Allocatoroperator= (const Allocator< U, TMemoryManager, nothrow > &alloc) noexcept
 
Allocatoroperator= (Allocator &&) noexcept=default
 

Detailed Description

template<class TMemoryManager, bool nothrow>
class CppCommon::Allocator< void, TMemoryManager, nothrow >

Memory allocator class (void specialization)

Definition at line 147 of file allocator.h.

Member Typedef Documentation

◆ const_pointer

template<class TMemoryManager , bool nothrow>
typedef const void* CppCommon::Allocator< void, TMemoryManager, nothrow >::const_pointer

Pointer to constant element.

Definition at line 155 of file allocator.h.

◆ difference_type

template<class TMemoryManager , bool nothrow>
typedef ptrdiff_t CppCommon::Allocator< void, TMemoryManager, nothrow >::difference_type

Difference between two pointers.

Definition at line 159 of file allocator.h.

◆ pointer

template<class TMemoryManager , bool nothrow>
typedef void* CppCommon::Allocator< void, TMemoryManager, nothrow >::pointer

Pointer to element.

Definition at line 153 of file allocator.h.

◆ size_type

template<class TMemoryManager , bool nothrow>
typedef size_t CppCommon::Allocator< void, TMemoryManager, nothrow >::size_type

Quantities of elements.

Definition at line 157 of file allocator.h.

◆ value_type

template<class TMemoryManager , bool nothrow>
typedef void CppCommon::Allocator< void, TMemoryManager, nothrow >::value_type

Element type.

Definition at line 151 of file allocator.h.

Constructor & Destructor Documentation

◆ Allocator() [1/3]

template<class TMemoryManager , bool nothrow>
CppCommon::Allocator< void, TMemoryManager, nothrow >::Allocator ( TMemoryManager &  manager)
inlinenoexcept

Definition at line 161 of file allocator.h.

◆ Allocator() [2/3]

template<class TMemoryManager , bool nothrow>
template<typename U >
CppCommon::Allocator< void, TMemoryManager, nothrow >::Allocator ( const Allocator< U, TMemoryManager, nothrow > &  alloc)
inlinenoexcept

Definition at line 163 of file allocator.h.

◆ Allocator() [3/3]

template<class TMemoryManager , bool nothrow>
CppCommon::Allocator< void, TMemoryManager, nothrow >::Allocator ( Allocator< void, TMemoryManager, nothrow > &&  )
defaultnoexcept

◆ ~Allocator()

template<class TMemoryManager , bool nothrow>
CppCommon::Allocator< void, TMemoryManager, nothrow >::~Allocator ( )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

template<class TMemoryManager , bool nothrow>
Allocator& CppCommon::Allocator< void, TMemoryManager, nothrow >::operator= ( Allocator< void, TMemoryManager, nothrow > &&  )
defaultnoexcept

◆ operator=() [2/2]

template<class TMemoryManager , bool nothrow>
template<typename U >
Allocator& CppCommon::Allocator< void, TMemoryManager, nothrow >::operator= ( const Allocator< U, TMemoryManager, nothrow > &  alloc)
inlinenoexcept

Definition at line 168 of file allocator.h.


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