1 #ifndef STAN_MATH_PRIM_SCAL_META_SCALAR_TYPE_HPP 2 #define STAN_MATH_PRIM_SCAL_META_SCALAR_TYPE_HPP 9 template <
bool is_vec,
typename T>
10 struct scalar_type_helper {
15 struct scalar_type_helper<true, T> {
17 scalar_type_helper<is_vector<
typename 34 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.