view: don't force const iterators for cbegin/cend
This commit is contained in:
parent
58843fb0c7
commit
7568e34649
10
view.hpp
10
view.hpp
@ -219,14 +219,12 @@ namespace util {
|
|||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
constexpr BeginT begin (void) noexcept { return m_begin; }
|
constexpr BeginT begin (void) noexcept { return m_begin; }
|
||||||
constexpr EndT end (void) noexcept { return m_end; }
|
constexpr EndT end (void) noexcept { return m_end; }
|
||||||
|
constexpr BeginT begin (void) const noexcept { return m_begin; }
|
||||||
|
constexpr EndT end (void) const noexcept { return m_end; }
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
constexpr const BeginT begin (void) const noexcept { return cbegin (); }
|
constexpr BeginT cbegin (void) const noexcept { return m_begin; }
|
||||||
constexpr const EndT end (void) const noexcept { return cend (); }
|
constexpr EndT cend (void) const noexcept { return m_end; }
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
|
||||||
constexpr const BeginT cbegin (void) const noexcept { return m_begin; }
|
|
||||||
constexpr const EndT cend (void) const noexcept { return m_end; }
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
auto data (void) noexcept { return begin (); }
|
auto data (void) noexcept { return begin (); }
|
||||||
|
Loading…
Reference in New Issue
Block a user