Stan Math Library
5.0.0
Automatic Differentiation
|
T1 stan::math::static_select | ( | T1 && | a, |
T2 && | b | ||
) |
Returns one of the arguments that can be of different type, depending on the compile time condition.
Can often be used in place of c++17 if constexpr
.
Condition | condition |
T1 | type of the first argument |
T2 | type of the second argument |
a | first argument; returned if the Condition is true |
b | second argument; returned if the Condition is false |
Condition
Definition at line 24 of file static_select.hpp.