From 4a929813792bd6d72f1c0aa43b6285299a4560fd Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 30 Aug 2017 15:13:24 +1000 Subject: [PATCH] view: we really don't need a dedicated find function --- view.hpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/view.hpp b/view.hpp index 718a758f..fd2cb02b 100644 --- a/view.hpp +++ b/view.hpp @@ -63,15 +63,6 @@ namespace util { auto data (void) { return begin (); } auto data (void) const { return begin (); } - constexpr T - find (const value_type &v) const noexcept - { - for (T i = cbegin (); i != cend (); ++i) - if (*i == v) - return i; - return cend (); - } - constexpr bool empty (void) const noexcept { @@ -112,6 +103,7 @@ namespace util { T m_end; }; + template auto make_view (const T (&arr)[N])