Skip to content

Function select

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

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)

Creates an expression that returns x if m is true, otherwise returns y.

The order of the arguments is the same as in the ternary operator.

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

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