|
| data_array () noexcept=default |
| Default constructor.
|
|
| data_array (std::initializer_list< T > l) noexcept |
| Constructor from initializer_list.
|
|
| data_array (const std::size_t n) noexcept |
| Constructor with size. More...
|
|
| data_array (const std::size_t n, const T &v) noexcept |
| Constructor with size. More...
|
|
| data_array (const data_array &d) noexcept |
| Copy constructor.
|
|
data_array & | operator= (const data_array &d) noexcept |
| Copy assignment operator.
|
|
| data_array (data_array &&d) noexcept |
| Move constructor.
|
|
data_array & | operator= (data_array &&d) noexcept |
| Move assignment operator.
|
|
| ~data_array () noexcept |
| Destructor.
|
|
void | clear () noexcept |
| Clear the contents of the array.
|
|
void | resize (std::size_t new_size) noexcept |
| Resize the array. More...
|
|
void | resize (std::size_t new_size, const T &v) noexcept |
| Resize-initialize the array. More...
|
|
std::size_t | size () const noexcept |
| Size of the array. More...
|
|
T & | operator[] (const std::size_t i) noexcept |
| Element at position i. More...
|
|
const T & | operator[] (const std::size_t i) const noexcept |
| Element at position i. More...
|
|
T & | first () noexcept |
| Non-constant reference to the first element in the array.
|
|
const T & | first () const noexcept |
| Constant reference to the first element in the array.
|
|
T & | back () noexcept |
| Non-constant reference to the last element in the array.
|
|
const T & | back () const noexcept |
| Constant reference to the first element in the array.
|
|
void | fill (const T &v) noexcept |
| Assign the same value to every element in the data.
|
|
T * | at (std::size_t i) noexcept |
| Pointer at a specific location of the array. More...
|
|
T const * | at (std::size_t i) const noexcept |
| Pointer at a specific location of the array. More...
|
|
T * | begin () noexcept |
| Non-constant raw pointer to first element.
|
|
T * | end () noexcept |
| Non-constant raw pointer to last+1 element.
|
|
T const * | begin () const noexcept |
| Constant raw pointer to first element.
|
|
T const * | end () const noexcept |
| Constant raw pointer to last+1 element.
|
|
template<typename T>
struct lal::detail::data_array< T >
Wrapper of a C array for autmatic deallocation of memory.
Automatically manage deallocation of memory via destructors.