Automatic Differentiation
 
Loading...
Searching...
No Matches
is_detected.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_DETECTED_HPP
2#define STAN_MATH_PRIM_META_IS_DETECTED_HPP
3
5#include <type_traits>
6
7namespace stan {
8
9template <typename, template <typename...> class, typename = void>
10struct is_detected : std::false_type {};
11
19template <typename T, template <typename...> class Op>
20struct is_detected<T, Op, void_t<Op<T>>> : std::true_type {};
21
22} // namespace stan
23#endif
typename make_void< Ts... >::type void_t
Utility metafunction that maps a sequence of any types to the type void This metafunction is used in ...
Definition void_t.hpp:21
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9