Skip to content

Function cif

function cif(cbool_t<true>, TrueFn &&, FalseFn &&) meta

template <typename TrueFn, typename FalseFn = fn_noop>
KFR_INTRINSIC constexpr decltype(auto) cif(cbool_t<true>, TrueFn&& truefn, FalseFn&& = FalseFn()) { … }

Template parameters
TrueFn callable invoked with ctrue on the true branch
FalseFn callable invoked with cfalse on the false branch

Fully qualified name: kfr::cif(cbool_t<true>, TrueFn &&, FalseFn &&)

Declared at meta.hpp:1334

Function cif

function cif(cbool_t<false>, TrueFn &&, FalseFn &&) meta

template <typename TrueFn, typename FalseFn = fn_noop>
KFR_INTRINSIC constexpr decltype(auto) cif(cbool_t<false>, TrueFn&&, FalseFn&& falsefn = FalseFn()) { … }

Compile-time conditional: invokes

falsefn when the condition is false

Fully qualified name: kfr::cif(cbool_t<false>, TrueFn &&, FalseFn &&)

Declared at meta.hpp:1341

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