Classes | Public Types | Public Member Functions | Public Attributes | List of all members
allocators::AlignedAllocator< T, align > Class Template Reference

An stl-compatible aligned allocator. More...

#include <aligned.h>

Classes

struct  rebind
 

Public Types

typedef ptrdiff_t difference_type
 
typedef T * pointer
 
typedef T & reference
 
typedef size_t size_type
 
typedef T value_type
 

Public Member Functions

const_pointer address (const_reference r) const
 
pointer address (reference r) const
 
 AlignedAllocator () throw ()
 
pointer allocate (size_type n, typename AlignedAllocator< void, align >::const_pointer hint=0)
 
void construct (pointer p, const_reference val)
 
void deallocate (pointer p, size_type n)
 
void destroy (pointer p)
 
size_type max_size () const throw ()
 
 ~AlignedAllocator () throw ()
 

Public Attributes

const typedef T * const_pointer
 
const typedef T & const_reference
 

Detailed Description

template<class T, size_t align>
class allocators::AlignedAllocator< T, align >

An stl-compatible aligned allocator.

Parameters
TThe type of the container element
alignThe alignment to allocate on

Definition at line 117 of file aligned.h.

Member Typedef Documentation

◆ difference_type

template<class T , size_t align>
typedef ptrdiff_t allocators::AlignedAllocator< T, align >::difference_type

Definition at line 146 of file aligned.h.

◆ pointer

template<class T , size_t align>
typedef T* allocators::AlignedAllocator< T, align >::pointer

Definition at line 147 of file aligned.h.

◆ reference

template<class T , size_t align>
typedef T& allocators::AlignedAllocator< T, align >::reference

Definition at line 149 of file aligned.h.

◆ size_type

template<class T , size_t align>
typedef size_t allocators::AlignedAllocator< T, align >::size_type

Definition at line 145 of file aligned.h.

◆ value_type

template<class T , size_t align>
typedef T allocators::AlignedAllocator< T, align >::value_type

Definition at line 151 of file aligned.h.

Constructor & Destructor Documentation

◆ AlignedAllocator()

template<class T , size_t align>
allocators::AlignedAllocator< T, align >::AlignedAllocator ( )
throw (
)
inline

Definition at line 159 of file aligned.h.

◆ ~AlignedAllocator()

template<class T , size_t align>
allocators::AlignedAllocator< T, align >::~AlignedAllocator ( )
throw (
)
inline

Definition at line 163 of file aligned.h.

Member Function Documentation

◆ address() [1/2]

template<class T , size_t align>
const_pointer allocators::AlignedAllocator< T, align >::address ( const_reference  r) const
inline

Definition at line 171 of file aligned.h.

◆ address() [2/2]

template<class T , size_t align>
pointer allocators::AlignedAllocator< T, align >::address ( reference  r) const
inline

Definition at line 167 of file aligned.h.

◆ allocate()

template<class T , size_t align>
pointer allocators::AlignedAllocator< T, align >::allocate ( size_type  n,
typename AlignedAllocator< void, align >::const_pointer  hint = 0 
)
inline

Definition at line 179 of file aligned.h.

◆ construct()

template<class T , size_t align>
void allocators::AlignedAllocator< T, align >::construct ( pointer  p,
const_reference  val 
)
inline

Definition at line 194 of file aligned.h.

◆ deallocate()

template<class T , size_t align>
void allocators::AlignedAllocator< T, align >::deallocate ( pointer  p,
size_type  n 
)
inline

Definition at line 189 of file aligned.h.

◆ destroy()

template<class T , size_t align>
void allocators::AlignedAllocator< T, align >::destroy ( pointer  p)
inline

Definition at line 198 of file aligned.h.

◆ max_size()

template<class T , size_t align>
size_type allocators::AlignedAllocator< T, align >::max_size ( ) const
throw (
)
inline

Definition at line 175 of file aligned.h.

Member Data Documentation

◆ const_pointer

template<class T , size_t align>
const typedef T* allocators::AlignedAllocator< T, align >::const_pointer

Definition at line 148 of file aligned.h.

◆ const_reference

template<class T , size_t align>
const typedef T& allocators::AlignedAllocator< T, align >::const_reference

Definition at line 150 of file aligned.h.


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


allocators
Author(s): Josh Faust
autogenerated on Wed Mar 2 2022 00:54:11