A convenience subclass of std::pmr::polymorphic_allocator for bytes.
More...
#include <aligator/memory/allocator.hpp>
|
using | base = std::pmr::polymorphic_allocator<byte_t> |
|
A convenience subclass of std::pmr::polymorphic_allocator for bytes.
This subclass adds templated allocate() and deallocate() methods which take the desired pointer alignment as argument. This extends the standard C++ allocator API for convenience use with allocating buffers in vectorized linear algbera.
Definition at line 17 of file allocator.hpp.
◆ base
◆ polymorphic_allocator() [1/4]
aligator::polymorphic_allocator::polymorphic_allocator |
( |
| ) |
|
|
inlinenoexcept |
◆ polymorphic_allocator() [2/4]
◆ polymorphic_allocator() [3/4]
template<typename U>
aligator::polymorphic_allocator::polymorphic_allocator |
( |
const std::pmr::polymorphic_allocator< U > & | other | ) |
|
|
inlinenoexcept |
◆ polymorphic_allocator() [4/4]
aligator::polymorphic_allocator::polymorphic_allocator |
( |
std::pmr::memory_resource * | resource | ) |
|
|
inlinenoexcept |
◆ allocate()
template<typename T>
T * aligator::polymorphic_allocator::allocate |
( |
size_t | n, |
|
|
size_t | alignment = EIGEN_DEFAULT_ALIGN_BYTES ) |
|
inlinenodiscard |
◆ deallocate()
template<typename T>
void aligator::polymorphic_allocator::deallocate |
( |
T * | p, |
|
|
size_t | n, |
|
|
size_t | alignment = EIGEN_DEFAULT_ALIGN_BYTES ) |
|
inline |
◆ allocate_bytes()
void * aligator::polymorphic_allocator::allocate_bytes |
( |
size_t | num_bytes, |
|
|
size_t | alignment = EIGEN_DEFAULT_ALIGN_BYTES ) |
|
inlinenodiscard |
◆ deallocate_bytes()
void aligator::polymorphic_allocator::deallocate_bytes |
( |
void * | p, |
|
|
size_t | num_bytes, |
|
|
size_t | alignment = EIGEN_DEFAULT_ALIGN_BYTES ) |
|
inline |
The documentation for this class was generated from the following file: