14 #include <type_traits> 36 template <
class T,
size_t AligmentBytes = MRPT_MAX_ALIGN_BYTES>
56 :
std::allocator<T>(other)
61 :
std::allocator<T>(other)
std::ptrdiff_t difference_type
void aligned_free(void *ptr)
size_t size(const MATRIXLIKE &m, const int dim)
pointer allocate(size_type num, const void *=nullptr)
aligned_allocator_cpp11(const aligned_allocator_cpp11< U > &other)
const T & const_reference
void * aligned_malloc(size_t size, size_t alignment)
~aligned_allocator_cpp11()=default
Aligned allocator that is compatible with C++11.
void * aligned_realloc(void *ptr, size_t size, size_t alignment)
void * aligned_calloc(size_t bytes, size_t alignment)
Identical to aligned_malloc, but it zeroes the reserved memory block.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
aligned_allocator_cpp11(const aligned_allocator_cpp11 &other)
void deallocate(pointer p, size_type)
aligned_allocator_cpp11()