DDC 0.0.0

a discrete domain computation library

ddc::AlignedAllocator< T, N > Class Template Reference

Classes

struct  rebind
 

Public Types

using value_type = T
 

Public Member Functions

constexpr AlignedAllocator ()=default
 
constexpr AlignedAllocator (AlignedAllocator const &x)=default
 
constexpr AlignedAllocator (AlignedAllocator &&x) noexcept=default
 
template<class U >
constexpr AlignedAllocator (AlignedAllocator< U, N > const &) noexcept
 
 ~AlignedAllocator ()=default
 
constexpr AlignedAllocatoroperator= (AlignedAllocator const &x)=default
 
constexpr AlignedAllocatoroperator= (AlignedAllocator &&x) noexcept=default
 
template<class U >
constexpr AlignedAllocatoroperator= (AlignedAllocator< U, N > const &) noexcept
 
T * allocate (std::size_t n) const
 
void deallocate (T *p, std::size_t) const
 

Class Documentation

◆ ddc::AlignedAllocator::rebind

struct ddc::AlignedAllocator::rebind
template<class T, std::size_t N>
template<class U>
struct ddc::AlignedAllocator< T, N >::rebind< U >
Class Members
typedef AlignedAllocator< U, N > other AlignedAllocator<U, N>

Member Typedef Documentation

◆ value_type

template<class T , std::size_t N>
using ddc::AlignedAllocator< T, N >::value_type = T

Constructor & Destructor Documentation

◆ AlignedAllocator() [1/4]

template<class T , std::size_t N>
constexpr ddc::AlignedAllocator< T, N >::AlignedAllocator ( )
constexprdefault

◆ AlignedAllocator() [2/4]

template<class T , std::size_t N>
constexpr ddc::AlignedAllocator< T, N >::AlignedAllocator ( AlignedAllocator< T, N > const & x)
constexprdefault

◆ AlignedAllocator() [3/4]

template<class T , std::size_t N>
constexpr ddc::AlignedAllocator< T, N >::AlignedAllocator ( AlignedAllocator< T, N > && x)
constexprdefaultnoexcept

◆ AlignedAllocator() [4/4]

template<class T , std::size_t N>
template<class U >
constexpr ddc::AlignedAllocator< T, N >::AlignedAllocator ( AlignedAllocator< U, N > const & )
inlineexplicitconstexprnoexcept

◆ ~AlignedAllocator()

template<class T , std::size_t N>
ddc::AlignedAllocator< T, N >::~AlignedAllocator ( )
default

Member Function Documentation

◆ operator=() [1/3]

template<class T , std::size_t N>
constexpr AlignedAllocator & ddc::AlignedAllocator< T, N >::operator= ( AlignedAllocator< T, N > const & x)
constexprdefault

◆ operator=() [2/3]

template<class T , std::size_t N>
constexpr AlignedAllocator & ddc::AlignedAllocator< T, N >::operator= ( AlignedAllocator< T, N > && x)
constexprdefaultnoexcept

◆ operator=() [3/3]

template<class T , std::size_t N>
template<class U >
constexpr AlignedAllocator & ddc::AlignedAllocator< T, N >::operator= ( AlignedAllocator< U, N > const & )
inlineconstexprnoexcept

◆ allocate()

template<class T , std::size_t N>
T * ddc::AlignedAllocator< T, N >::allocate ( std::size_t n) const
inline

◆ deallocate()

template<class T , std::size_t N>
void ddc::AlignedAllocator< T, N >::deallocate ( T * p,
std::size_t  ) const
inline

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