Skip to content

Function clamp

function clamp(E1 &&, E2 &&, E3 &&) base

template <typename E1, typename E2, typename E3>
    requires expression_arguments<E1, E2, E3>
KFR_FUNCTION expression_make_function<fn::clamp, E1, E2, E3> clamp(E1&& x, E2&& lo, E3&& hi)

Creates an expression that returns the first argument clamped to a range [lo, hi]

Fully qualified name: kfr::clamp(E1 &&, E2 &&, E3 &&)

Function clamp

function clamp(E1 &&, E2 &&) base

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]

Fully qualified name: kfr::clamp(E1 &&, E2 &&)

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.