1 #ifndef STAN__MATH__FUNCTIONS__PRIMITIVE_VALUE_HPP
2 #define STAN__MATH__FUNCTIONS__PRIMITIVE_VALUE_HPP
4 #include <boost/utility/enable_if.hpp>
5 #include <boost/type_traits/is_arithmetic.hpp>
29 typename boost::enable_if<boost::is_arithmetic<T>, T>::type
46 typename boost::disable_if<boost::is_arithmetic<T>,
double>::type
double value_of(const T x)
Return the value of the specified scalar argument converted to a double value.
boost::enable_if< boost::is_arithmetic< T >, T >::type primitive_value(T x)
Return the value of the specified arithmetic argument unmodified with its own declared type...