view: add single iterator consume operator

This commit is contained in:
Danny Robson 2018-01-10 18:49:14 +11:00
parent ad02c94511
commit a2806cfa75

View File

@ -261,6 +261,14 @@ namespace util {
}
//---------------------------------------------------------------------
util::view<BeginT,EndT>
operator- (BeginT newbegin) const noexcept
{
return { newbegin, end () };
}
///////////////////////////////////////////////////////////////////////
template <
typename ValueT,