Array of elements.
More...
#include "C16/Array.hpp"
template<typename Element>
class C16::Array< Element >
Array of elements.
- Template Parameters
-
Element | Type of the elements of the array |
- Examples
Iteration
{
for (const Element& element : array)
{
...
}
}
◆ value_type
template<typename Element >
Type of the elements of the array.
◆ const_reference
template<typename Element >
Type of a constant reference to an element of the array.
◆ reference
template<typename Element >
Type of a reference to an element of the array.
◆ operator[]() [1/2]
template<typename Element >
Gets an element of the array by means of its index.
- Parameters
-
index | Index of the element of the array (0 to size() - 1) |
- Returns
- Element
- Exceptions
-
◆ operator[]() [2/2]
template<typename Element >
Gets an element of the array by means of its index.
- Parameters
-
index | Index of the element of the array (0 to size() - 1) |
- Returns
- Element
- Exceptions
-
◆ at() [1/2]
template<typename Element >
Gets an element of the array by means of its index.
- Parameters
-
index | Index of the element of the array (0 to size() - 1) |
- Returns
- Element
- Exceptions
-
◆ at() [2/2]
template<typename Element >
Gets an element of the array by means of its index.
- Parameters
-
index | Index of the element of the array (0 to size() - 1) |
- Returns
- Element
- Exceptions
-
◆ front() [1/2]
template<typename Element >
Gets the first element of the array.
- Exceptions
-
◆ front() [2/2]
template<typename Element >
Gets the first element of the array.
- Exceptions
-
◆ back() [1/2]
template<typename Element >
Gets the last element of the array.
- Exceptions
-
◆ back() [2/2]
template<typename Element >
Gets the last element of the array.
- Exceptions
-
◆ begin() [1/2]
template<typename Element >
Gets a const-iterator of the first element of the array.
◆ begin() [2/2]
template<typename Element >
Gets an iterator of the first element of the array.
◆ cbegin()
template<typename Element >
Gets a const-iterator of the first element of the array.
◆ end() [1/2]
template<typename Element >
Gets a const-iterator of the element following the last element of the array.
◆ end() [2/2]
template<typename Element >
Gets an iterator of the element following the last element of the array.
◆ cend()
template<typename Element >
Gets a const-iterator of the element following the last element of the array.
◆ rbegin() [1/2]
template<typename Element >
Gets a const-iterator of the last element of the array.
◆ rbegin() [2/2]
template<typename Element >
Gets an iterator of the last element of the array.
◆ crbegin()
template<typename Element >
Gets a const-iterator of the last element of the array.
◆ rend() [1/2]
template<typename Element >
Gets a const-iterator of the element preceding the first element of the array.
◆ rend() [2/2]
template<typename Element >
Gets an iterator of the element preceding the first element of the array.
◆ crend()
template<typename Element >
Gets a const-iterator of the element preceding the first element of the array.