view: add 'data' accessor call
added for completeness sake. users can now call std::begin/std::end/std::data
This commit is contained in:
parent
1248f15e4f
commit
e5090ff916
3
view.hpp
3
view.hpp
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user