|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
An allocator that aligns memory blocks according to a specified alignment. More...
#include <aligned.h>
Classes | |
| struct | rebind |
Public Types | |
| using | value_type = T |
Public Member Functions | |
| AlignedAllocator () noexcept=default | |
| template<class U> | |
| AlignedAllocator (const AlignedAllocator< U, Alignment > &) noexcept | |
| T * | allocate (std::size_t n) |
| Allocates a block of memory that can hold n elements of type T. | |
| void | deallocate (T *ptr, std::size_t) noexcept |
| Deallocates a block of memory that was previously allocated by allocate. | |
An allocator that aligns memory blocks according to a specified alignment.
The allocator is compatible with std::allocator and can be used in place of std::allocator in STL containers.
| T | The type of elements that the allocator will allocate. |
| Alignment | The alignment for the allocated memory blocks. |
| using momentum::AlignedAllocator< T, Alignment >::value_type = T |
|
defaultnoexcept |
|
inlineexplicitnoexcept |
|
inlinenodiscard |
|
inlinenoexcept |