Function choose_const¶
function choose_const() meta¶
template <typename T>
constexpr KFR_INTRINSIC T choose_const() noexcept { … } Selects the constant of the specific type from a list of candidates. Returns the candidate whose type matches T ; triggers a static_assert if T is not present.
CHECK( choose_const<f32>( 32.0f, 64.0 ) == 32.0f );
CHECK( choose_const<f64>( 32.0f, 64.0 ) == 64.0 );
Fully qualified name: kfr::choose_const()
Declared at meta.hpp:1518
Function choose_const¶
function choose_const(C1, Cs...) meta¶
template <typename T, typename C1, typename... Cs>
constexpr KFR_INTRINSIC T choose_const(C1, Cs... constants) noexcept
requires(!std::is_same_v<T, C1>) { … } Recursively skips candidates whose type does not match
T
Fully qualified name: kfr::choose_const(C1, Cs...)
Declared at meta.hpp:1532
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.