E.V.E
v2022.09.01

◆ to_nearest

eve::to_nearest = {}
inlineconstexpr

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
fAn 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)