Loading [MathJax]/extensions/TeX/AMSsymbols.js
Stan Math Library
5.0.0
Automatic Differentiation
▼
Stan Math Library
Overview
▼
Contributor Guides
Developer Guide
Adding New Functions
Adding New Distributions
Common Pitfalls
Using requires for general overloads
Reverse Mode Types
Testing Automatic Differentiation Functions
Testing New Distributions
Add New Functions With Known Gradients
Adding New OpenCL Functions
Windows Development Tips
▼
Internal Docs
►
Probability Distributions
►
OpenCL
►
Compressed Sparse Row matrix format.
►
Type Traits
►
Available requires<> for overloading.
►
Eigen expressions
►
arena_matrix <br>
►
real <br>
►
Parallelism
(External Link) Stan Language Docs
(External Link) Stan Discourse
►
Stan Math Library Docs
►
Class List
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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
4
#include <
stan/math/prim/meta/void_t.hpp
>
5
#include <type_traits>
6
7
namespace
stan
{
8
9
template
<
typename
,
template
<
typename
...>
class
,
typename
=
void
>
10
struct
is_detected
: std::false_type {};
11
19
template
<
typename
T,
template
<
typename
...>
class
Op>
20
struct
is_detected
<T, Op,
void_t
<Op<T>>> : std::true_type {};
21
22
}
// namespace stan
23
#endif
stan::void_t
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
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
stan::is_detected
Definition
is_detected.hpp:10
void_t.hpp
stan
math
prim
meta
is_detected.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.