Falcon
Classes | Public Types | Public Member Functions | List of all members
fmemory::STLAllocator< T > Class Template Reference

#include <STLMemoryInterface.h>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef T & reference
 

Public Member Functions

 STLAllocator ()=default
 
 ~STLAllocator ()=default
 
template<class U >
 STLAllocator (const STLAllocator< U > &ref)
 
pointer allocate (size_t count)
 
void deallocate (pointer p, size_t count)
 
pointer address (reference x) const
 

Member Typedef Documentation

◆ pointer

template<class T >
typedef T* fmemory::STLAllocator< T >::pointer

◆ reference

template<class T >
typedef T& fmemory::STLAllocator< T >::reference

◆ value_type

template<class T >
typedef T fmemory::STLAllocator< T >::value_type

Constructor & Destructor Documentation

◆ STLAllocator() [1/2]

template<class T >
fmemory::STLAllocator< T >::STLAllocator ( )
default

Allocators are stateless so we don't need to define the anything in constructors and destructors.

◆ ~STLAllocator()

template<class T >
fmemory::STLAllocator< T >::~STLAllocator ( )
default

◆ STLAllocator() [2/2]

template<class T >
template<class U >
fmemory::STLAllocator< T >::STLAllocator ( const STLAllocator< U > &  ref)
inline

Member Function Documentation

◆ address()

template<class T >
pointer fmemory::STLAllocator< T >::address ( reference  x) const
inline

obtains the address of an object, even if operator& is overloaded

◆ allocate()

template<class T >
pointer fmemory::STLAllocator< T >::allocate ( size_t  count)
inline

Allocator for the stl containers. Takes in variable count and returns pointer to specified type.

◆ deallocate()

template<class T >
void fmemory::STLAllocator< T >::deallocate ( pointer  p,
size_t  count 
)
inline

Deallocator for the stl containers. Takes in variable count and pointer to specified type. Then calls custom deallocator.


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