E.V.E
v2022.03.00

◆ saturated

eve::saturated = {}
inlineconstexpr

Higher-order Callable Object imbuing saturation semantic onto other Callable Objects.

Synopsis

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

#include <eve/module/core.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 taking care of saturating its return value so that it always fit into the input type range.

saturated is currently supported by