view: add 'data' accessor call

added for completeness sake. users can now call
std::begin/std::end/std::data
This commit is contained in:
Danny Robson 2017-07-28 14:26:49 +10:00
parent 1248f15e4f
commit e5090ff916

View File

@ -45,6 +45,9 @@ namespace util {
constexpr const T& cbegin (void) const noexcept; constexpr const T& cbegin (void) const noexcept;
constexpr const T& cend (void) const noexcept; constexpr const T& cend (void) const noexcept;
auto data (void) { return begin (); }
auto data (void) const { return begin (); }
constexpr T find (const value_type&) const noexcept; constexpr T find (const value_type&) const noexcept;
constexpr bool empty (void) const noexcept; constexpr bool empty (void) const noexcept;