Add mp_find_if_q

This commit is contained in:
Peter Dimov
2017-10-22 02:18:40 +03:00
parent aae8d4dfba
commit 0f5c50b195
4 changed files with 69 additions and 0 deletions
+6
View File
@@ -541,6 +541,12 @@ is `mp_size<L>`.
`mp_find_f<L, P>` is an alias for `mp_size_t<I>`, where `I` is the zero-based index of the first element `T` in `L` for which
`mp_to_bool<P<T>>` is `mp_true`. If there is no such element, `mp_find_if<L, P>` is `mp_size<L>`.
## mp_find_if_q<L, Q>
template<class L, class Q> using mp_find_if_q = mp_find_if<L, Q::template fn>;
As `mp_find_if`, but takes a quoted metafunction.
## mp_reverse<L>
template<class L> using mp_reverse = /*...*/;