Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
index_type.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__META__INDEX_TYPE_HPP
2 #define STAN__MATH__META__INDEX_TYPE_HPP
3 
4 #include <vector>
5 
6 namespace stan {
7 
8  namespace math {
9 
20  template <typename T>
21  struct index_type {
22  };
23 
24 
31  template <typename T>
32  struct index_type<const T> {
33  typedef typename index_type<T>::type type;
34  };
35 
36 
37 
38 
45  template <typename T>
46  struct index_type<std::vector<T> > {
47 
51  typedef typename std::vector<T>::size_type type;
52 
53  };
54 
55 
56  }
57 }
58 
59 
60 #endif
std::vector< T >::size_type type
Typedef for index of standard vectors.
Definition: index_type.hpp:51
Primary template class for the metaprogram to compute the index type of a container.
Definition: index_type.hpp:21
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Definition: typedefs.hpp:14
index_type< T >::type type
Definition: index_type.hpp:33

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