Automatic Differentiation
 
Loading...
Searching...
No Matches
value_type.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_VALUE_TYPE_HPP
2#define STAN_MATH_PRIM_META_VALUE_TYPE_HPP
3
6#include <type_traits>
7#include <vector>
8
9namespace stan {
10
17template <typename T, typename = void>
18struct value_type {
19 using type = typename std::decay_t<T>;
20};
21
26template <typename T>
27struct value_type<T, std::enable_if_t<std::is_pointer<T>::value>> {
29};
30
34template <typename T>
36
37} // namespace stan
38
39#endif
typename value_type< T >::type value_type_t
Helper function for accessing underlying type.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9
STL namespace.
typename value_type< std::remove_pointer< T > >::type type
typename std::decay_t< T > type
Primary template class for metaprogram to compute the type of values stored in a container.