Skip to content

Function select

function select(cvals_t<bool, flags...>, cvals_t<T, values1...>, cvals_t<T, values2...>) meta

template <typename T, bool... flags, T... values1, T... values2>
constexpr cvals_t<T, (flags ? values1 : values2)...> select(cvals_t<bool, flags...>, cvals_t<T, values1...>,
                                                            cvals_t<T, values2...>) noexcept { … }

Element-wise selection between two value lists based on a flag list. For each position, returns values1[i] if flags[i] is true , otherwise values2[i] .

Fully qualified name: kfr::select(cvals_t<bool, flags...>, cvals_t<T, values1...>, cvals_t<T, values2...>)

Declared at meta.hpp:355

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