function clamp(E1 &&, E2 &&) expressions¶
template <typename E1, typename E2>
requires expression_arguments<E1, E2>
KFR_FUNCTION expression_make_function<fn::clamp, E1, E2> clamp(E1&& x, E2&& hi) Creates an expression that returns the first argument clamped to a range [0, hi]
Defined at base/simd_expressions.hpp:487