Template Function util::get(array<T, N>&)¶
Defined in File array.hpp
Function Documentation¶
-
template<std::size_t I, class T, std::size_t N>
constexpr auto util::get(array<T, N> &a) noexcept -> T&¶ Extracts the Ith element element from the array.
Contrary to array’s at() behaviour, the parameter I is checked at compile-time to not be out of range.
- Parameters
a – the array to get the Ith element from
- Template Parameters
I – the position of the element to get
T – the type of elements of the array
N – the size of the array