Skip to content

function select(E1 &&, E2 &&, E3 &&) expressions

template <typename E1, typename E2, typename E3>
    requires expression_arguments<E1, E2, E3>
KFR_FUNCTION expression_make_function<fn::select, E1, E2, E3> select(E1&& m, E2&& x, E3&& y)

Returns template expression that returns x if m is true, otherwise return y. Order of the arguments is same as in ternary operator.

Defined at base/simd_expressions.hpp:367