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