From 09780a6df889422069bcf232a238e77b84f8f47c Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Thu, 4 Mar 2021 12:46:48 +0100 Subject: [PATCH] Add a note to mp_for_each for lists with elements which are not default-constructible --- doc/mp11/algorithm.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/mp11/algorithm.adoc b/doc/mp11/algorithm.adoc index ab7b793..ea9ec3b 100644 --- a/doc/mp11/algorithm.adoc +++ b/doc/mp11/algorithm.adoc @@ -907,6 +907,8 @@ template void print( std::tuple const & tp ) } ``` +In case the elements of the list `L` are not default-constructible, you can use `mp_for_each>`. + ## mp_with_index(i, f) template