We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab00172 commit deb9520Copy full SHA for deb9520
llvm/include/llvm/ADT/ilist_node_options.h
@@ -145,12 +145,8 @@ struct is_valid_option<ilist_parent<ParentTy>> : std::true_type {};
145
/// Check whether options are valid.
146
///
147
/// The conjunction of \a is_valid_option on each individual option.
148
-template <class... Options> struct check_options;
149
-template <> struct check_options<> : std::true_type {};
150
-template <class Option1, class... Options>
151
-struct check_options<Option1, Options...>
152
- : std::bool_constant<is_valid_option<Option1>::value &&
153
- check_options<Options...>::value> {};
+template <class... Options>
+struct check_options : std::conjunction<is_valid_option<Options>...> {};
154
155
/// Traits for options for \a ilist_node.
156
0 commit comments