From e5090ff91617eb9f8d7bec8d0058edbda88d56d1 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 28 Jul 2017 14:26:49 +1000 Subject: [PATCH] view: add 'data' accessor call added for completeness sake. users can now call std::begin/std::end/std::data --- view.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/view.hpp b/view.hpp index 4072e598..00fa5b83 100644 --- a/view.hpp +++ b/view.hpp @@ -45,6 +45,9 @@ namespace util { constexpr const T& cbegin (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 bool empty (void) const noexcept;