|
inlineconstexpr |
return the input incremented by one.
Defined in Header
Parameters
Return value
The value of x + 1
is returned.
Masked Call
The call eve::inc[mask](x, ...)
provides a masked version of inc
which is equivalent to if_else(mask, inc(x, ...), x)
Example
The call saturated(inc)(x)
computes the saturated increment of x
. The only interest of this behaviour is that for integral type T the call saturated(inc)(Valmax<T>())
returns Valmax<T>()
.
Example