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