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

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