Go to the documentation of this file.
9 #ifndef EAGINE_ARRAY_SIZE_HPP
10 #define EAGINE_ARRAY_SIZE_HPP
18 template <
typename T, std::
size_t N>
19 static constexpr
auto array_size(
const T (&)[N]) noexcept {
25 #endif // EAGINE_ARRAY_SIZE_HPP
static constexpr auto span_size(T v) noexcept
Converts argument to span size type.
Definition: types.hpp:59
Common code is placed in this namespace.
Definition: eagine.hpp:21
static constexpr auto array_size(const T(&)[N]) noexcept
Returns the number of elements in the array passed as argument.
Definition: array_size.hpp:19