forked from boostorg/mp11
Add mp_all_of_q, mp_any_of_q, mp_none_of_q
This commit is contained in:
1 parent
0f5c50b195
commit
df8217ce97
6 files changed
+231
No files matched your search
@@ -609,6 +609,12 @@ As `mp_reverse_fold`, but takes a quoted metafunction.
|
||||
|
||||
`mp_all_of<L, P>` is `mp_true` when `P` holds for all elements of `L`, `mp_false` otherwise. When `L` is empty, the result is `mp_true`.
|
||||
|
||||
## mp_all_of_q<L, Q>
|
||||
|
||||
template<class L, class Q> using mp_all_of_q = mp_all_of<L, Q::template fn>;
|
||||
|
||||
As `mp_all_of`, but takes a quoted metafunction.
|
||||
|
||||
## mp_none_of<L, P>
|
||||
|
||||
template<class L, template<class...> class P> using mp_none_of =
|
||||
@@ -616,6 +622,12 @@ As `mp_reverse_fold`, but takes a quoted metafunction.
|
||||
|
||||
`mp_none_of<L, P>` is `mp_true` when `P` holds for no element of `L`, `mp_false` otherwise. When `L` is empty, the result is `mp_true`.
|
||||
|
||||
## mp_none_of_q<L, Q>
|
||||
|
||||
template<class L, class Q> using mp_none_of_q = mp_none_of<L, Q::template fn>;
|
||||
|
||||
As `mp_none_of`, but takes a quoted metafunction.
|
||||
|
||||
## mp_any_of<L, P>
|
||||
|
||||
template<class L, template<class...> class P> using mp_any_of =
|
||||
@@ -623,6 +635,12 @@ As `mp_reverse_fold`, but takes a quoted metafunction.
|
||||
|
||||
`mp_any_of<L, P>` is `mp_true` when `P` holds for at least one element of `L`, `mp_false` otherwise. When `L` is empty, the result is `mp_false`.
|
||||
|
||||
## mp_any_of_q<L, Q>
|
||||
|
||||
template<class L, class Q> using mp_any_of_q = mp_any_of<L, Q::template fn>;
|
||||
|
||||
As `mp_any_of`, but takes a quoted metafunction.
|
||||
|
||||
## mp_for_each<L>(f)
|
||||
|
||||
template<class L, class F> constexpr F mp_for_each(F&& f);
|
||||
|
||||
Reference in new issue
Block a user