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

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