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

#include <StackSTLAllocator.h>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef T & reference
 

Public Member Functions

 StackSTLAllocator ()=default
 
 ~StackSTLAllocator ()=default
 
template<class U >
 StackSTLAllocator (const StackSTLAllocator< 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::StackSTLAllocator< T >::pointer

◆ reference

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

◆ value_type

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

Constructor & Destructor Documentation

◆ StackSTLAllocator() [1/2]

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

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

◆ ~StackSTLAllocator()

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

◆ StackSTLAllocator() [2/2]

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

Member Function Documentation

◆ address()

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

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

◆ allocate()

template<class T >
pointer fmemory::StackSTLAllocator< 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::StackSTLAllocator< 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: