From 588bc4458adc24b2dba619939a84b7c80f58f1f3 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 24 May 2020 04:36:29 +0300 Subject: [PATCH] Update documentation of tuple_for_each --- doc/mp11/tuple.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/mp11/tuple.adoc b/doc/mp11/tuple.adoc index 7e0d864..bd7fe33 100644 --- a/doc/mp11/tuple.adoc +++ b/doc/mp11/tuple.adoc @@ -32,7 +32,7 @@ The name of the function doesn't match the {cpp}17 one to avoid ambiguities when template constexpr F tuple_for_each(Tp&& tp, F&& f); -`tuple_for_each(tp, f)` applies the function object `f` to each element of `tp` by evaluating the +`tuple_for_each(tp, f)` applies the function object `f` to each element of `tp` in order by evaluating the expression `f(std::get(std::forward(tp)))` for `J` in 0..`N-1`, where `N` is `std::tuple_size::type>::value`. Returns `std::forward(f)`.