Skip to content

impl::AlignedAllocator

#include <allocator.hh>
template<typename T, std::size_t Alignment = 16>
struct AlignedAllocator

Defined in src/lib/ncarray/host/allocator.hh:26

Name Kind Owner
AlignedAllocator function Declared here
AlignedAllocator function Declared here
allocate function Declared here
deallocate function Declared here
value_type typedef Declared here
Return Name Description
AlignedAllocator noexcept Defaulted constructor.
AlignedAllocator inline noexcept
T * allocate inline
void deallocate inline noexcept

noexcept

AlignedAllocator() noexcept = default

Defined in src/lib/ncarray/host/allocator.hh:32

Defaulted constructor.


inline noexcept

template<typename U> inline AlignedAllocator(const AlignedAllocator< U, Alignment > &) noexcept

Defined in src/lib/ncarray/host/allocator.hh:35


inline

inline T * allocate(std::size_t n)

Defined in src/lib/ncarray/host/allocator.hh:37


inline noexcept

inline void deallocate(T * ptr, std::size_t) noexcept

Defined in src/lib/ncarray/host/allocator.hh:46

Name Description
value_type

using value_type = T

Defined in src/lib/ncarray/host/allocator.hh:30