1 #ifndef STAN_MATH_PRIM_SCAL_META_SCALAR_TYPE_HPP
2 #define STAN_MATH_PRIM_SCAL_META_SCALAR_TYPE_HPP
10 template <
bool is_vec,
typename T>
11 struct scalar_type_helper {
16 struct scalar_type_helper<true, T> {
18 scalar_type_helper<is_vector<
typename
35 typedef typename scalar_type_helper<is_vector<T>::value, T>
::type type;
scalar_type< T >::type type
Metaprogram structure to determine the base scalar type of a template argument.
scalar_type_helper< is_vector< T >::value, T >::type type
Primary template class for metaprogram to compute the type of values stored in a container.