Automatic Differentiation
 
Loading...
Searching...
No Matches
is_vari.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_VARI_HPP
2#define STAN_MATH_PRIM_META_IS_VARI_HPP
3
5#include <type_traits>
6
7namespace stan {
12template <typename T, typename = void>
13struct is_vari : std::false_type {};
14
15template <typename T>
17 using type = typename std::decay_t<T>::value_type;
18};
19
20} // namespace stan
21#endif
std::enable_if_t< Check::value > require_t
If condition is true, template is enabled.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Specialization for checking if value of T minus cv qualifier and pointer is a vari.
Definition is_vari.hpp:13
typename std::decay_t< T >::value_type type
Definition is_vari.hpp:17
Primary template class for metaprogram to compute the type of values stored in a container.