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 e29260b commit d3c1ebfCopy full SHA for d3c1ebf
include/adm/detail/named_option_helper.hpp
@@ -17,5 +17,17 @@ namespace adm {
17
setNamedOptionHelper(std::forward<Element>(element), std::move(args)...);
18
}
19
20
+ /// check that the first template type is present in the remainder
21
+ template <typename T>
22
+ constexpr bool optionInList() {
23
+ return false;
24
+ }
25
+
26
+ template <typename T, typename Param, typename... Params>
27
28
+ using ParamT = std::remove_const_t<std::remove_reference_t<Param>>;
29
+ return std::is_same<T, ParamT>::value || optionInList<T, Params...>();
30
31
32
} // namespace detail
33
} // namespace adm
0 commit comments