1#ifndef STAN_MATH_PRIM_META_STATIC_SELECT_HPP
2#define STAN_MATH_PRIM_META_STATIC_SELECT_HPP
22template <
bool Condition,
typename T1,
typename T2,
23 std::enable_if_t<Condition>* =
nullptr>
25 return std::forward<T1>(a);
28template <
bool Condition,
typename T1,
typename T2,
29 std::enable_if_t<!Condition>* =
nullptr>
31 return std::forward<T2>(b);
T1 static_select(T1 &&a, T2 &&b)
Returns one of the arguments that can be of different type, depending on the compile time condition.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...