From 2e7328ea26ff5cd6e5ec77a3c4fcdd57c71a0fe7 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 17 Dec 2023 20:41:43 +0200 Subject: [PATCH] Update documentation --- doc/mp11/algorithm.adoc | 4 ++++ doc/mp11/changelog.adoc | 1 + 2 files changed, 5 insertions(+) diff --git a/doc/mp11/algorithm.adoc b/doc/mp11/algorithm.adoc index 2e5e126..7b9d852 100644 --- a/doc/mp11/algorithm.adoc +++ b/doc/mp11/algorithm.adoc @@ -721,6 +721,8 @@ Like `mp_nth_element`, but takes a quoted metafunction. It's equivalent to `mp_fold, mp_first, F>`, where `F` returns `mp_if, T, U>`. +Supports a value list as `L` under {cpp}17. In that case, the element is returned wrapped with `mp_value`. + ## mp_min_element_q template using mp_min_element_q = mp_min_element; @@ -735,6 +737,8 @@ As `mp_min_element`, but takes a quoted metafunction. It's equivalent to `mp_fold, mp_first, F>`, where `F` returns `mp_if, T, U>`. +Supports a value list as `L` under {cpp}17. In that case, the element is returned wrapped with `mp_value`. + ## mp_max_element_q template using mp_max_element_q = mp_max_element; diff --git a/doc/mp11/changelog.adoc b/doc/mp11/changelog.adoc index 8af79f8..8d83807 100644 --- a/doc/mp11/changelog.adoc +++ b/doc/mp11/changelog.adoc @@ -14,6 +14,7 @@ http://www.boost.org/LICENSE_1_0.txt * Added `mp_sliding_fold`, a generalization of `mp_pairwise_fold` (contributed by Braden Ganetsky) * Added `mp_slice` (thanks to Braden Ganetsky) +* Added value list support to `mp_min_element`, `mp_max_element`. ## Changes in 1.83.0