1
0
forked from boostorg/mp11

Fix documentation of mp_unique_if, mp_unique_if_q

This commit is contained in:
Peter Dimov
2019-12-07 19:05:21 +02:00
parent aa11577812
commit 1542a0c388

View File

@@ -661,13 +661,14 @@ As `mp_reverse_fold`, but takes a quoted metafunction.
## mp_unique_if<L, P>
template<class L> using mp_unique_if = /*...*/;
template<class L, template<class...> class P> using mp_unique_if = /*...*/;
`mp_unique_if<L, P>` returns a list of the same form as `L` with the duplicate elements removed for which `mp_to_bool<P<T>>` is `mp_true`.
As `mp_unique`, but two elements `T` and `U` are considered duplicates when `mp_to_bool<P<T, U>>` is `mp_true`.
## mp_unique_if<L, Q>
## mp_unique_if_q<L, Q>
template<class L, class Q> using mp_unique_if = mp_unique_if<L, Q::template fn>;
template<class L, class Q> using mp_unique_if_q =
mp_unique_if<L, Q::template fn>;
As `mp_unique_if`, but takes a quoted metafunction.