DDC 0.1.0
Loading...
Searching...
No Matches
ddc::AlignedAllocator< T, N > Class Template Reference

#include <aligned_allocator.hpp>

Collaboration diagram for ddc::AlignedAllocator< T, N >:
Collaboration graph

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
 

Detailed Description

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

Definition at line 14 of file aligned_allocator.hpp.


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 >

Definition at line 20 of file aligned_allocator.hpp.

Collaboration diagram for ddc::AlignedAllocator< T, N >::rebind< U >:
Collaboration graph
Class Members
typedef AlignedAllocator< U, N > other

Member Typedef Documentation

◆ value_type

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

Definition at line 17 of file aligned_allocator.hpp.

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

Definition at line 32 of file aligned_allocator.hpp.

◆ ~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

Definition at line 43 of file aligned_allocator.hpp.

◆ allocate()

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

Definition at line 47 of file aligned_allocator.hpp.

◆ deallocate()

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

Definition at line 52 of file aligned_allocator.hpp.


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