impl::AlignedAllocator
AlignedAllocator
Section titled “AlignedAllocator”#include <allocator.hh>template<typename T, std::size_t Alignment = 16>struct AlignedAllocatorDefined in src/lib/ncarray/host/allocator.hh:26
List of all members
Section titled “List of all members”| Name | Kind | Owner |
|---|---|---|
AlignedAllocator |
function |
Declared here |
AlignedAllocator |
function |
Declared here |
allocate |
function |
Declared here |
deallocate |
function |
Declared here |
value_type |
typedef |
Declared here |
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
AlignedAllocator noexcept |
Defaulted constructor. | |
AlignedAllocator inline noexcept |
||
T * |
allocate inline |
|
void |
deallocate inline noexcept |
AlignedAllocator
Section titled “AlignedAllocator”noexcept
AlignedAllocator() noexcept = defaultDefined in src/lib/ncarray/host/allocator.hh:32
Defaulted constructor.
AlignedAllocator
Section titled “AlignedAllocator”inline noexcept
template<typename U> inline AlignedAllocator(const AlignedAllocator< U, Alignment > &) noexceptDefined in src/lib/ncarray/host/allocator.hh:35
allocate
Section titled “allocate”inline
inline T * allocate(std::size_t n)Defined in src/lib/ncarray/host/allocator.hh:37
deallocate
Section titled “deallocate”inline noexcept
inline void deallocate(T * ptr, std::size_t) noexceptDefined in src/lib/ncarray/host/allocator.hh:46
Public Types
Section titled “Public Types”| Name | Description |
|---|---|
value_type |
value_type
Section titled “value_type”using value_type = TDefined in src/lib/ncarray/host/allocator.hh:30