view: don't force const iterators for cbegin/cend

This commit is contained in:
Danny Robson 2018-03-23 14:40:40 +11:00
parent 58843fb0c7
commit 7568e34649

View File

@ -217,16 +217,14 @@ namespace util {
///////////////////////////////////////////////////////////////////////
constexpr BeginT begin (void) noexcept { return m_begin; }
constexpr EndT end (void) noexcept { return m_end; }
constexpr BeginT begin (void) noexcept { return m_begin; }
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 const EndT end (void) const noexcept { return cend (); }
//---------------------------------------------------------------------
constexpr const BeginT cbegin (void) const noexcept { return m_begin; }
constexpr const EndT cend (void) const noexcept { return m_end; }
constexpr BeginT cbegin (void) const noexcept { return m_begin; }
constexpr EndT cend (void) const noexcept { return m_end; }
//---------------------------------------------------------------------
auto data (void) noexcept { return begin (); }