Implemented ability to just pass the array

This commit is contained in:
CommanderRedYT
2023-09-23 10:08:33 +02:00
parent 96e318fd6d
commit d92d4d113c

View File

@ -33,6 +33,11 @@ struct ArrayView
m_begin{begin}, m_end{begin + size}
{}
template<std::size_t N>
constexpr explicit ArrayView(value_type (&array)[N]) noexcept :
m_begin{array}, m_end{array + N}
{}
constexpr ArrayView(const ArrayView &other) noexcept :
m_begin{other.m_begin}, m_end{other.m_end}
{}