MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
util::AlignedAllocator< T, alignment > Struct Template Reference

Implements the STL allocator interface for aligned memory allocation. More...

#include <aligned_allocator.h>

Classes

struct  rebind
 

Public Types

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

Public Member Functions

template<class T_other , size_t alignment_other>
 AlignedAllocator (AlignedAllocator< T_other, alignment_other > const &)
 
 AlignedAllocator (void)
 
pointer allocate (size_type n)
 
void construct (pointer p, const_reference other)
 
void deallocate (pointer p, size_type)
 
void destroy (pointer p)
 
size_type max_size (void) const
 
template<class T_other , size_t alignment_other>
bool operator!= (AlignedAllocator< T_other, alignment_other > const &) const
 
template<class T_other , size_t alignment_other>
bool operator== (AlignedAllocator< T_other, alignment_other > const &) const
 

Detailed Description

template<typename T, size_t alignment>
struct util::AlignedAllocator< T, alignment >

Implements the STL allocator interface for aligned memory allocation.

Definition at line 30 of file aligned_allocator.h.

Member Typedef Documentation

◆ const_pointer

template<typename T , size_t alignment>
typedef T const* util::AlignedAllocator< T, alignment >::const_pointer

Definition at line 35 of file aligned_allocator.h.

◆ const_reference

template<typename T , size_t alignment>
typedef T const& util::AlignedAllocator< T, alignment >::const_reference

Definition at line 37 of file aligned_allocator.h.

◆ difference_type

template<typename T , size_t alignment>
typedef std::ptrdiff_t util::AlignedAllocator< T, alignment >::difference_type

Definition at line 39 of file aligned_allocator.h.

◆ pointer

template<typename T , size_t alignment>
typedef T* util::AlignedAllocator< T, alignment >::pointer

Definition at line 34 of file aligned_allocator.h.

◆ reference

template<typename T , size_t alignment>
typedef T& util::AlignedAllocator< T, alignment >::reference

Definition at line 36 of file aligned_allocator.h.

◆ size_type

template<typename T , size_t alignment>
typedef std::size_t util::AlignedAllocator< T, alignment >::size_type

Definition at line 38 of file aligned_allocator.h.

◆ value_type

template<typename T , size_t alignment>
typedef T util::AlignedAllocator< T, alignment >::value_type

Definition at line 33 of file aligned_allocator.h.

Constructor & Destructor Documentation

◆ AlignedAllocator() [1/2]

template<typename T , size_t alignment>
util::AlignedAllocator< T, alignment >::AlignedAllocator ( void  )
inline

Definition at line 70 of file aligned_allocator.h.

◆ AlignedAllocator() [2/2]

template<typename T , size_t alignment>
template<class T_other , size_t alignment_other>
util::AlignedAllocator< T, alignment >::AlignedAllocator ( AlignedAllocator< T_other, alignment_other > const &  )
inline

Definition at line 77 of file aligned_allocator.h.

Member Function Documentation

◆ allocate()

template<typename T , size_t alignment>
AlignedAllocator< T, alignment >::pointer util::AlignedAllocator< T, alignment >::allocate ( size_type  n)
inline

Definition at line 84 of file aligned_allocator.h.

◆ construct()

template<typename T , size_t alignment>
void util::AlignedAllocator< T, alignment >::construct ( pointer  p,
const_reference  other 
)
inline

Definition at line 121 of file aligned_allocator.h.

◆ deallocate()

template<typename T , size_t alignment>
void util::AlignedAllocator< T, alignment >::deallocate ( pointer  p,
size_type   
)
inline

Definition at line 103 of file aligned_allocator.h.

◆ destroy()

template<typename T , size_t alignment>
void util::AlignedAllocator< T, alignment >::destroy ( pointer  p)
inline

Definition at line 128 of file aligned_allocator.h.

◆ max_size()

template<typename T , size_t alignment>
AlignedAllocator< T, alignment >::size_type util::AlignedAllocator< T, alignment >::max_size ( void  ) const
inline

Definition at line 114 of file aligned_allocator.h.

◆ operator!=()

template<typename T , size_t alignment>
template<class T_other , size_t alignment_other>
bool util::AlignedAllocator< T, alignment >::operator!= ( AlignedAllocator< T_other, alignment_other > const &  ) const
inline

Definition at line 145 of file aligned_allocator.h.

◆ operator==()

template<typename T , size_t alignment>
template<class T_other , size_t alignment_other>
bool util::AlignedAllocator< T, alignment >::operator== ( AlignedAllocator< T_other, alignment_other > const &  ) const
inline

Definition at line 136 of file aligned_allocator.h.


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