Stan Math Library  2.20.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 
26 template <typename T>
27 struct index_type<const T> {
28  typedef typename index_type<T>::type type;
29 };
30 
31 } // namespace math
32 } // namespace stan
33 
34 #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:28

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