|
inlineconstexpr |
Parameters
x
, y
: values argumentx.c
: Conditional expression masking the operation.m
: Logical value masking the operation.Return value
x
by y
and is equivalent to x-div[toward_zero](x, y)*y
.x-div[o](x, y)*y
where o
is the chosen option. For unsigned integral the options upward and nearest are undefined behaviour as the result could be negative.%
is supported, the %
operator on standard integral scalar type is the original one and so can lead to automatic promotion. Moreover due to C++ limitations, %
is not available for scalar floating point values.