view: add single iterator consume operator
This commit is contained in:
parent
ad02c94511
commit
a2806cfa75
8
view.hpp
8
view.hpp
@ -261,6 +261,14 @@ namespace util {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------
|
||||||
|
util::view<BeginT,EndT>
|
||||||
|
operator- (BeginT newbegin) const noexcept
|
||||||
|
{
|
||||||
|
return { newbegin, end () };
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////
|
||||||
template <
|
template <
|
||||||
typename ValueT,
|
typename ValueT,
|
||||||
|
Loading…
Reference in New Issue
Block a user