view: comment style

This commit is contained in:
Danny Robson 2017-10-02 14:14:55 +11:00
parent d03a248138
commit 4641d43742

View File

@ -108,7 +108,7 @@ namespace util {
}; };
//--------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////
constexpr IteratorT begin (void) noexcept { return m_begin; } constexpr IteratorT begin (void) noexcept { return m_begin; }
constexpr IteratorT end (void) noexcept { return m_end; } constexpr IteratorT end (void) noexcept { return m_end; }
@ -124,7 +124,7 @@ namespace util {
auto data (void) { return begin (); } auto data (void) { return begin (); }
auto data (void) const { return begin (); } auto data (void) const { return begin (); }
//--------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////
constexpr bool constexpr bool
empty (void) const noexcept empty (void) const noexcept
{ {
@ -148,7 +148,7 @@ namespace util {
return view { m_begin, m_begin + count }; return view { m_begin, m_begin + count };
}; };
//--------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////
constexpr value_type& constexpr value_type&
operator[] (size_t idx)& noexcept operator[] (size_t idx)& noexcept
{ {
@ -166,9 +166,8 @@ namespace util {
return *it; return *it;
} }
private: private:
//--------------------------------------------------------------------- ///////////////////////////////////////////////////////////////////////
IteratorT m_begin; IteratorT m_begin;
IteratorT m_end; IteratorT m_end;
}; };