iLab Neuromorphic Robotics Toolkit
0.1
|
#include <nrt/Core/Memory/Allocation.H>
A c++ STL compatible allocator that always performs aligned allocation.
This differs from nrt::Allocator in that it will always perform aligned allocation regardless of the settings nrt::allocate has been compiled to use. In general this will often mean that this allocator does not use caching. In addition, this allocator has an easier interface in the sense that NRT does not need to be recompiled when the allocation boundary is changed.
T | The underlying type to allocate |
N | The size, in bytes, of the boundary to align to. Must be a power of two. |
Definition at line 137 of file Allocation.H.
Public Member Functions | |
AlignedAllocator (AlignedAllocator const &other) noexcept | |
template<class U > | |
AlignedAllocator (AlignedAllocator< U, N > const &other) noexcept | |
pointer | allocate (size_type n, const void *=0) |
void | deallocate (pointer p, size_type) |
Additional Inherited Members | |
![]() | |
T | elements |
STL member. | |