|
Zero
0.1.0
|
#include <allocator.h>
Classes | |
| struct | rebind |
Public Types | |
| typedef T | value_type |
| typedef T * | pointer |
| typedef const T * | const_pointer |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef std::size_t | size_type |
| typedef std::ptrdiff_t | difference_type |
Public Member Functions | |
| memalign_allocator () throw () | |
| memalign_allocator (const memalign_allocator &) throw () | |
| template<class U > | |
| memalign_allocator (const memalign_allocator< U, Alignment > &) throw () | |
| ~memalign_allocator () throw () | |
| pointer | address (reference r) |
| const_pointer | address (const_reference r) const |
| void | construct (pointer p, const_reference value) |
| void | destroy (pointer p) |
| size_type | max_size () const throw () |
| bool | operator== (const memalign_allocator &) |
| bool | operator!= (const memalign_allocator &rhs) |
| pointer | allocate (size_type count, const_pointer=0) |
| void | deallocate (pointer p, size_t=1) |
C++ STL allocator that uses posix_memalign. Used for direct I/O buffers. Adapted from: http://jmabille.github.io/blog/2014/12/06/aligned-memory-allocator/
| typedef const T* memalign_allocator< T, Alignment >::const_pointer |
| typedef const T& memalign_allocator< T, Alignment >::const_reference |
| typedef std::ptrdiff_t memalign_allocator< T, Alignment >::difference_type |
| typedef T* memalign_allocator< T, Alignment >::pointer |
| typedef T& memalign_allocator< T, Alignment >::reference |
| typedef std::size_t memalign_allocator< T, Alignment >::size_type |
| typedef T memalign_allocator< T, Alignment >::value_type |
|
inline | |||||||||||||
|
inline | ||||||||||||||
|
inline | ||||||||||||||
|
inline | |||||||||||||
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline | |||||||||||||
|
inline |
|
inline |
1.8.12