My Project
disjunction.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_DISJUNCTION_HPP
29 #define BSL_DISJUNCTION_HPP
30 
31 #include "conditional.hpp"
32 #include "false_type.hpp"
33 
34 namespace bsl
35 {
46  template<typename... BN>
47  class disjunction final : false_type
48  {};
49 
51 
52  template<typename B1>
53  class disjunction<B1> final : public bool_constant<B1::value>
54  {};
55 
56  template<typename B1, typename... BN>
57  class disjunction<B1, BN...> final :
58  public conditional_t<
59  B1::value,
60  bool_constant<B1::value>,
61  bool_constant<disjunction<BN...>::value>>
62  {};
63 
65 }
66 
67 #endif
Forms the logical disjunction of the type traits B..., effectively performing a logical OR on the seq...
Definition: disjunction.hpp:47
If the provided type is an array type (taking into account const qualifications), provides the member...
Definition: integral_constant.hpp:45