From 1542a0c388a9151d71b7af9d317a7946cbe54bb8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 7 Dec 2019 19:05:21 +0200 Subject: [PATCH] Fix documentation of mp_unique_if, mp_unique_if_q --- doc/mp11/algorithm.adoc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/doc/mp11/algorithm.adoc b/doc/mp11/algorithm.adoc index 86158be..70477b5 100644 --- a/doc/mp11/algorithm.adoc +++ b/doc/mp11/algorithm.adoc @@ -661,13 +661,14 @@ As `mp_reverse_fold`, but takes a quoted metafunction. ## mp_unique_if - template using mp_unique_if = /*...*/; + template class P> using mp_unique_if = /*...*/; -`mp_unique_if` returns a list of the same form as `L` with the duplicate elements removed for which `mp_to_bool>` is `mp_true`. +As `mp_unique`, but two elements `T` and `U` are considered duplicates when `mp_to_bool>` is `mp_true`. -## mp_unique_if +## mp_unique_if_q - template using mp_unique_if = mp_unique_if; + template using mp_unique_if_q = + mp_unique_if; As `mp_unique_if`, but takes a quoted metafunction.