Stan Math Library  2.20.0
reverse mode automatic differentiation
value_type.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_VALUE_TYPE_HPP
2 #define STAN_MATH_PRIM_SCAL_META_VALUE_TYPE_HPP
3 
4 namespace stan {
5 namespace math {
6 
17 template <typename T>
18 struct value_type {};
19 
26 template <typename T>
27 struct value_type<const T> {
28  typedef typename value_type<T>::type type;
29 };
30 
31 } // namespace math
32 } // namespace stan
33 #endif
value_type< T >::type type
Definition: value_type.hpp:28
Primary template class for metaprogram to compute the type of values stored in a container.
Definition: value_type.hpp:18

     [ Stan Home Page ] © 2011–2018, Stan Development Team.