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

@ -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 (); }