Classes | Public Types | Public Member Functions
allocators::AlignedAllocator< T, align > Class Template Reference

An stl-compatible aligned allocator. More...

#include <aligned.h>

List of all members.

Classes

struct  rebind

Public Types

typedef const T * const_pointer
typedef const T & const_reference
typedef ptrdiff_t difference_type
typedef T * pointer
typedef T & reference
typedef size_t size_type
typedef T value_type

Public Member Functions

pointer address (reference r) const
const_pointer address (const_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 ()

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 110 of file aligned.h.


Member Typedef Documentation

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

Definition at line 116 of file aligned.h.

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

Definition at line 118 of file aligned.h.

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

Definition at line 114 of file aligned.h.

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

Definition at line 115 of file aligned.h.

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

Definition at line 117 of file aligned.h.

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

Definition at line 113 of file aligned.h.

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

Definition at line 119 of file aligned.h.


Constructor & Destructor Documentation

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

Definition at line 127 of file aligned.h.

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

Definition at line 131 of file aligned.h.


Member Function Documentation

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

Definition at line 135 of file aligned.h.

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

Definition at line 139 of file aligned.h.

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 147 of file aligned.h.

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

Definition at line 162 of file aligned.h.

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

Definition at line 157 of file aligned.h.

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

Definition at line 166 of file aligned.h.

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

Definition at line 143 of file aligned.h.


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


allocators
Author(s): Josh Faust
autogenerated on Sat Jun 8 2019 20:43:31