|
| array () noexcept=default |
| Default constructor.
|
|
| array (std::initializer_list< T > l) noexcept |
| Constructor from initializer_list.
|
|
| array (const std::size_t n) noexcept |
| Constructor with size.
|
|
| array (const std::size_t n, const T &v) noexcept |
| Constructor with size.
|
|
| array (const array &d) noexcept |
| Copy constructor.
|
|
array & | operator= (const array &d) noexcept |
| Copy assignment operator.
|
|
| array (array &&d) noexcept |
| Move constructor.
|
|
array & | operator= (array &&d) noexcept |
| Move assignment operator.
|
|
| ~array () noexcept |
| Destructor.
|
|
bool | operator== (const array &d) const noexcept |
| Comparison of equal data arrays.
|
|
void | clear () noexcept |
| Clear the contents of the array.
|
|
void | resize (const std::size_t new_size) noexcept |
| Resize the array.
|
|
void | resize (const std::size_t new_size, const T &v) noexcept |
| Resize-initialize the array.
|
|
std::size_t | size () const noexcept |
| Size of the array.
|
|
T & | operator[] (const std::size_t i) noexcept |
| Element at position i.
|
|
const T & | operator[] (const std::size_t i) const noexcept |
| Element at position i.
|
|
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 (const std::size_t i) noexcept |
| Pointer at a specific location of the array.
|
|
T const * | at (const std::size_t i) const noexcept |
| Pointer at a specific location of the array.
|
|
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::array< T >
Wrapper of a C array for automatic deallocation of memory.
Automatically manage deallocation of memory via destructors.