|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
C++ Allocator that hands out Align-byte-aligned storage. More...
#include <aligned_allocator.hpp>
Classes | |
| struct | rebind |
Public Types | |
| using | value_type = T |
Public Member Functions | |
| aligned_allocator () noexcept=default | |
| template<typename U> | |
| aligned_allocator (const aligned_allocator< U, Align > &) noexcept | |
| T * | allocate (std::size_t n) |
| void | deallocate (T *p, std::size_t) noexcept |
| template<typename U> | |
| bool | operator== (const aligned_allocator< U, Align > &) const noexcept |
| template<typename U> | |
| bool | operator!= (const aligned_allocator< U, Align > &) const noexcept |
Static Public Attributes | |
| static constexpr std::size_t | alignment = Align |
C++ Allocator that hands out Align-byte-aligned storage.
Usable as std::vector<T, aligned_allocator<T>> for SIMD-friendly scratch/packing buffers. Stateless: all instances compare equal.
| using mtl::detail::aligned_allocator< T, Align >::value_type = T |
|
defaultnoexcept |
|
inlinenoexcept |
|
inlinenodiscard |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
staticconstexpr |