All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
child_type.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_META_CHILD_TYPE_HPP
#define STAN_MATH_PRIM_SCAL_META_CHILD_TYPE_HPP
namespace stan {
namespace math {
template <typename T>
struct child_type {
typedef double type;
};
template <template<typename> class T_struct, typename T_child>
struct child_type<T_struct<T_child> >{
typedef T_child type;
};
}
}
#endif
stan::math::child_type< T_struct< T_child > >::type
T_child type
Definition: child_type.hpp:35
stan::math::child_type::type
double type
Definition: child_type.hpp:20
stan::math::child_type
Primary template class for metaprogram to compute child type of T.
Definition: child_type.hpp:19

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