From a2806cfa758631083da0746b472279409e49b91c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 10 Jan 2018 18:49:14 +1100 Subject: [PATCH] view: add single iterator consume operator --- view.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/view.hpp b/view.hpp index 3cd135ef..cd10eedb 100644 --- a/view.hpp +++ b/view.hpp @@ -261,6 +261,14 @@ namespace util { } + //--------------------------------------------------------------------- + util::view + operator- (BeginT newbegin) const noexcept + { + return { newbegin, end () }; + } + + /////////////////////////////////////////////////////////////////////// template < typename ValueT,