Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
value_type.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__META__VALUE_TYPE_HPP
2 #define STAN__MATH__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> > {
45 
50  typedef typename std::vector<T>::value_type type;
51 
52  };
53 
54 
55  }
56 }
57 
58 
59 #endif
value_type< T >::type type
Definition: value_type.hpp:33
std::vector< T >::value_type type
Type of value stored in a standard vector with type T entries.
Definition: value_type.hpp:50
Primary template class for metaprogram to compute the type of values stored in a container.
Definition: value_type.hpp:21

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