1#ifndef STAN_MATH_PRIM_META_TUPLE_ELEMENT_HPP
2#define STAN_MATH_PRIM_META_TUPLE_ELEMENT_HPP
20template <std::
size_t N,
typename T,
typename =
void>
25template <std::
size_t N,
typename T>
28 std::enable_if_t<stan::is_tuple_v<T> && (N < stan::tuple_size_v<T>)>> {
29 using type = std::tuple_element_t<N, std::decay_t<T>>;
32template <std::
size_t N,
typename T>
typename stan::tuple_element< N, T >::type tuple_element_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
std::tuple_element_t< N, std::decay_t< T > > type
Equivalent to std::tuple_element but returns void if N is out of range to avoid a static assertion fa...