view: add convenience wrappers for addition operators

This commit is contained in:
Danny Robson 2018-05-10 12:53:45 +10:00
parent 6042d9ab76
commit df3a556867

View File

@ -332,6 +332,20 @@ namespace util {
} }
constexpr auto
operator+ (int count) const
{
return consume (count);
}
constexpr auto
operator+= (int count)&
{
return *this = consume (count);
}
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
template < template <
typename ValueT, typename ValueT,