Stan Math Library  2.20.0
reverse mode automatic differentiation
disjunction.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_DISJUNCTION_HPP
2 #define STAN_MATH_PRIM_SCAL_META_DISJUNCTION_HPP
3 
4 #include <type_traits>
5 
6 namespace stan {
7 namespace math {
13 template <typename... Conds>
14 struct disjunction : std::false_type {};
15 
16 template <typename Cond, typename... Conds>
17 struct disjunction<Cond, Conds...>
18  : std::conditional<Cond::value, std::true_type,
19  disjunction<Conds...>>::type {};
20 
21 } // namespace math
22 } // namespace stan
23 #endif
Extends std::false_type when instantiated with zero or more template parameters, all of which extend ...
Definition: disjunction.hpp:14

     [ Stan Home Page ] © 2011–2018, Stan Development Team.