E.V.E
v2023.02.15

◆ tolerant

eve::tolerant = {}
inlineconstexpr

Higher-order Callable Object imbuing a less strict semantic onto other Callable Objects.

Synopsis

if tolerant(eve::fname) is to be called then

#include <eve:module/core.hpp.hpp>

must be included.

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 while insuring that a small error on the parameters will not affect the result.

eve::tolerant is currently supported by eve::ceil, eve::floor and eve::trunc object functions.