Stan Math Library  2.15.0
reverse mode automatic differentiation
child_type.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_CHILD_TYPE_HPP
2 #define STAN_MATH_PRIM_SCAL_META_CHILD_TYPE_HPP
3 
4 namespace stan {
5  namespace math {
6 
17  template <typename T>
18  struct child_type {
19  typedef double type;
20  };
21 
32  template <template<typename> class T_struct, typename T_child>
33  struct child_type<T_struct<T_child> >{
34  typedef T_child type;
35  };
36 
37  }
38 }
39 
40 #endif
Primary template class for metaprogram to compute child type of T.
Definition: child_type.hpp:18

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