E.V.E
v2022.09.01
◆
to_nearest
eve::to_nearest = {}
inline
constexpr
Higher-order
Callable Object
imbuing rounding to nearest semantic onto other
Callable Objects
.
Members Functions
auto
operator()(eve::callable
auto
const
& f )
const
noexcept
;
Parameters
f
An instance of eve::callable
Returns
A
Callable Object
performing the same kind of operation but rounding the result to the nearest integer (half integers are rounded to even)
eve::div
,
eve::fracscale
eve::rem
eve::round
,
eve::roundscale
.
eve