|
Expression Templates Library (ETL)
|
RAII wrapper for allocated aligned memory. More...
#include <allocator.hpp>
Public Member Functions | |
| aligned_ptr (T *ptr) | |
| Build an aligned_ptr managing the given pointer. | |
| aligned_ptr (const aligned_ptr &rhs)=delete | |
| aligned_ptr & | operator= (const aligned_ptr &rhs)=delete |
| aligned_ptr (aligned_ptr &&rhs) noexcept | |
| Move construct an aligned_ptr. More... | |
| aligned_ptr & | operator= (aligned_ptr &&rhs) noexcept |
| Move assign an aligned_ptr. More... | |
| T & | operator[] (size_t i) |
| Returns a reference to the element at psition i. | |
| const T & | operator[] (size_t i) const |
| Returns a reference to the element at psition i. | |
| ~aligned_ptr () | |
| Destruct the aligned_ptr and release the aligned memory. | |
| T * | get () |
| Returns the raw underlying pointer. | |
Public Attributes | |
| T * | ptr |
| The raw pointer. | |
RAII wrapper for allocated aligned memory.
|
inlinenoexcept |
Move construct an aligned_ptr.
| rhs | The pointer to move |
|
inlinenoexcept |
1.8.13