view: add convenience wrappers for addition operators
This commit is contained in:
parent
6042d9ab76
commit
df3a556867
14
view.hpp
14
view.hpp
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user