| Stan Math Library 2.6.3 probability, sampling & optimization

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
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 #include <vector>
5
6 namespace stan {
7
8 namespace math {
9
20 template <typename T>
21 struct value_type {
22 };
23
24
31 template <typename T>
32 struct value_type<const T> {
33 typedef typename value_type<T>::type type;
34 };
35
36
43 template <typename T>
44 struct value_type<std::vector<T> > {
49 typedef typename std::vector<T>::value_type type;
50 };
51
52
53 }
54 }
55
56
57 #endif
stan::math::value_type< const T >::type
value_type< T >::type type
Definition: value_type.hpp:33
stan::math::value_type< std::vector< T > >::type
std::vector< T >::value_type type
Type of value stored in a standard vector with type T entries.
Definition: value_type.hpp:49
stan::math::value_type
Primary template class for metaprogram to compute the type of values stored in a container.
Definition: value_type.hpp:21

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