Aligned allocator that is compatible with C++11.
Default alignment can be 16 (default), 32 (if AVX is defined) or 64 (if AVX2 is defined). See also: https://bitbucket.org/eigen/eigen/commits/f5b7700
Definition at line 38 of file aligned_allocator.h.
#include <mrpt/core/aligned_allocator.h>
Classes | |
struct | rebind |
Public Types | |
using | size_type = std::size_t |
using | difference_type = std::ptrdiff_t |
using | pointer = T * |
using | const_pointer = const T * |
using | reference = T & |
using | const_reference = const T & |
using | value_type = T |
Public Member Functions | |
aligned_allocator_cpp11 () | |
aligned_allocator_cpp11 (const aligned_allocator_cpp11 &other) | |
template<class U > | |
aligned_allocator_cpp11 (const aligned_allocator_cpp11< U > &other) | |
~aligned_allocator_cpp11 () | |
pointer | allocate (size_type num, const void *=nullptr) |
void | deallocate (pointer p, size_type) |
Public Attributes | |
T | elements |
STL member. More... | |
using mrpt::aligned_allocator_cpp11< T, AligmentBytes >::const_pointer = const T* |
Definition at line 44 of file aligned_allocator.h.
using mrpt::aligned_allocator_cpp11< T, AligmentBytes >::const_reference = const T& |
Definition at line 46 of file aligned_allocator.h.
using mrpt::aligned_allocator_cpp11< T, AligmentBytes >::difference_type = std::ptrdiff_t |
Definition at line 42 of file aligned_allocator.h.
using mrpt::aligned_allocator_cpp11< T, AligmentBytes >::pointer = T* |
Definition at line 43 of file aligned_allocator.h.
using mrpt::aligned_allocator_cpp11< T, AligmentBytes >::reference = T& |
Definition at line 45 of file aligned_allocator.h.
using mrpt::aligned_allocator_cpp11< T, AligmentBytes >::size_type = std::size_t |
Definition at line 41 of file aligned_allocator.h.
using mrpt::aligned_allocator_cpp11< T, AligmentBytes >::value_type = T |
Definition at line 47 of file aligned_allocator.h.
|
inline |
Definition at line 55 of file aligned_allocator.h.
|
inline |
Definition at line 56 of file aligned_allocator.h.
|
inline |
Definition at line 61 of file aligned_allocator.h.
|
inline |
Definition at line 65 of file aligned_allocator.h.
|
inline |
Definition at line 66 of file aligned_allocator.h.
References mrpt::aligned_malloc().
|
inline |
Definition at line 71 of file aligned_allocator.h.
References mrpt::aligned_free().
|
inherited |
STL member.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |