Low-Level Abstraction of Memory Access
llama::bloballoc::AlignedAllocator< T, Alignment > Struct Template Reference

An STL compatible allocator allowing to specify alignment. More...

#include <BlobAllocators.hpp>

Classes

struct  rebind
 

Public Types

using value_type = T
 

Public Member Functions

 AlignedAllocator () noexcept=default
 
template<typename T2 >
 AlignedAllocator (const AlignedAllocator< T2, Alignment > &) noexcept
 
auto allocate (std::size_t n) -> T *
 
void deallocate (T *p, std::size_t)
 
auto operator!= (const AlignedAllocator< T, Alignment > &other) const -> bool
 
auto operator== (const AlignedAllocator< T, Alignment > &) const -> bool
 

Detailed Description

template<typename T, std::size_t Alignment>
struct llama::bloballoc::AlignedAllocator< T, Alignment >

An STL compatible allocator allowing to specify alignment.

Definition at line 92 of file BlobAllocators.hpp.

Member Typedef Documentation

◆ value_type

template<typename T , std::size_t Alignment>
using llama::bloballoc::AlignedAllocator< T, Alignment >::value_type = T

Definition at line 94 of file BlobAllocators.hpp.

Constructor & Destructor Documentation

◆ AlignedAllocator() [1/2]

template<typename T , std::size_t Alignment>
llama::bloballoc::AlignedAllocator< T, Alignment >::AlignedAllocator ( )
inlinedefaultnoexcept

◆ AlignedAllocator() [2/2]

template<typename T , std::size_t Alignment>
template<typename T2 >
llama::bloballoc::AlignedAllocator< T, Alignment >::AlignedAllocator ( const AlignedAllocator< T2, Alignment > &  )
inlineexplicitnoexcept

Definition at line 99 of file BlobAllocators.hpp.

Member Function Documentation

◆ allocate()

template<typename T , std::size_t Alignment>
auto llama::bloballoc::AlignedAllocator< T, Alignment >::allocate ( std::size_t  n) -> T*
inline

Definition at line 103 of file BlobAllocators.hpp.

◆ deallocate()

template<typename T , std::size_t Alignment>
void llama::bloballoc::AlignedAllocator< T, Alignment >::deallocate ( T *  p,
std::size_t   
)
inline

Definition at line 108 of file BlobAllocators.hpp.

◆ operator!=()

template<typename T , std::size_t Alignment>
auto llama::bloballoc::AlignedAllocator< T, Alignment >::operator!= ( const AlignedAllocator< T, Alignment > &  other) const -> bool
inline

Definition at line 119 of file BlobAllocators.hpp.

◆ operator==()

template<typename T , std::size_t Alignment>
auto llama::bloballoc::AlignedAllocator< T, Alignment >::operator== ( const AlignedAllocator< T, Alignment > &  ) const -> bool
inline

Definition at line 124 of file BlobAllocators.hpp.


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