view: implement non-const indexing operator
This commit is contained in:
parent
b027b60be0
commit
555168d9a3
10
view.ipp
10
view.ipp
@ -150,6 +150,16 @@ util::view<T>::operator[] (size_t idx) const noexcept
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
template <typename T>
|
||||
constexpr
|
||||
typename util::view<T>::value_type&
|
||||
util::view<T>::operator[] (size_t idx) noexcept
|
||||
{
|
||||
return m_begin[idx];
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
template <typename T>
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user