|
QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
|
An STL allocator which allocates aligned memory. More...
#include "aligned_allocator.hpp"
Classes | |
| struct | rebind |
Public Types | |
| enum | { alignment = Align } |
| typedef T | value_type |
| typedef T * | pointer |
| typedef const T * | const_pointer |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef size_t | size_type |
| typedef ptrdiff_t | difference_type |
| typedef std::true_type | propagate_on_container_move_assignment |
Public Member Functions | |
| aligned_allocator () noexcept | |
| template<class U > | |
| aligned_allocator (const aligned_allocator< U, Align, initialize > &) noexcept | |
| size_type | max_size () const noexcept |
| pointer | address (reference x) const noexcept |
| const_pointer | address (const_reference x) const noexcept |
| pointer | allocate (size_type n, typename aligned_allocator< void, Align, initialize >::const_pointer=0) |
| void | deallocate (pointer p, size_type) noexcept |
| template<class U , class... Args> | |
| void | construct (U *p, Args &&...args) |
| void | destroy (pointer p) |
An STL allocator which allocates aligned memory.
Stolen from http://stackoverflow.com/questions/12942548/making-stdvector-allocate-aligned-memory
| typedef T quickcpplib::_xxx::aligned_allocator::aligned_allocator< T, Align, initialize >::value_type |
| typedef T* quickcpplib::_xxx::aligned_allocator::aligned_allocator< T, Align, initialize >::pointer |
| typedef const T* quickcpplib::_xxx::aligned_allocator::aligned_allocator< T, Align, initialize >::const_pointer |
| typedef T& quickcpplib::_xxx::aligned_allocator::aligned_allocator< T, Align, initialize >::reference |
| typedef const T& quickcpplib::_xxx::aligned_allocator::aligned_allocator< T, Align, initialize >::const_reference |
| typedef size_t quickcpplib::_xxx::aligned_allocator::aligned_allocator< T, Align, initialize >::size_type |
| typedef ptrdiff_t quickcpplib::_xxx::aligned_allocator::aligned_allocator< T, Align, initialize >::difference_type |
| typedef std::true_type quickcpplib::_xxx::aligned_allocator::aligned_allocator< T, Align, initialize >::propagate_on_container_move_assignment |
| anonymous enum |
| Enumerator | |
|---|---|
| alignment | |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |