Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Concepts
Data Structures | Public Types | Public Member Functions
measurements::stealth_allocator< T > Class Template Reference

#include <StealthAllocator.hpp>

Data Structures

struct  rebind
 

Public Types

using value_type = T
 
using pointer = T *
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const T &
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 stealth_allocator ()=default
 
template<typename U >
 stealth_allocator (const stealth_allocator< U > &)
 
pointer allocate (size_type n)
 
void deallocate (pointer ptr, size_type)
 
void destroy (pointer p)
 
template<class ... Args>
void construct (pointer p, Args &&... args)
 

Member Typedef Documentation

◆ const_pointer

template<typename T >
using measurements::stealth_allocator< T >::const_pointer = const T *

◆ const_reference

template<typename T >
using measurements::stealth_allocator< T >::const_reference = const T &

◆ difference_type

template<typename T >
using measurements::stealth_allocator< T >::difference_type = std::ptrdiff_t

◆ pointer

template<typename T >
using measurements::stealth_allocator< T >::pointer = T *

◆ reference

template<typename T >
using measurements::stealth_allocator< T >::reference = T &

◆ size_type

template<typename T >
using measurements::stealth_allocator< T >::size_type = std::size_t

◆ value_type

template<typename T >
using measurements::stealth_allocator< T >::value_type = T

Constructor & Destructor Documentation

◆ stealth_allocator() [1/2]

template<typename T >
measurements::stealth_allocator< T >::stealth_allocator ( )
default

◆ stealth_allocator() [2/2]

template<typename T >
template<typename U >
measurements::stealth_allocator< T >::stealth_allocator ( const stealth_allocator< U > &  )
inline

Member Function Documentation

◆ allocate()

template<typename T >
pointer measurements::stealth_allocator< T >::allocate ( size_type  n)
inline

◆ construct()

template<typename T >
template<class ... Args>
void measurements::stealth_allocator< T >::construct ( pointer  p,
Args &&...  args 
)
inline

◆ deallocate()

template<typename T >
void measurements::stealth_allocator< T >::deallocate ( pointer  ptr,
size_type   
)
inline

◆ destroy()

template<typename T >
void measurements::stealth_allocator< T >::destroy ( pointer  p)
inline

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