Skip to content

Function compiletime::select

function select(bool, T, T) math

template <typename T>
constexpr inline T select(bool c, T x, T y) { … }

Compile-time conditional select between two values.

Template parameters
T Value type.
Parameters
c Condition.
x Value returned when c is true.
y Value returned when c is false.
Returns
x or y depending on c.

Fully qualified name: kfr::compiletime::select(bool, T, T)

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