From cad3c61045f8b639a3f651e5f4819592c6d69974 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 24 May 2020 04:35:32 +0300 Subject: [PATCH] Update documentation of tuple_transform --- doc/mp11/tuple.adoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/mp11/tuple.adoc b/doc/mp11/tuple.adoc index 4b190f8..7e0d864 100644 --- a/doc/mp11/tuple.adoc +++ b/doc/mp11/tuple.adoc @@ -45,12 +45,11 @@ Returns `std::forward(f)`. (`std::tuple`, `std::pair` and `std::array` are considered tuples.) The callable `f` must accept as many arguments as there are tuples. The function object is called with the -first elements of each tuple, then with the second element of each tuple, and so on, as if by evaluating +first elements of each tuple, with the second elements of each tuple, and so on, as if by evaluating the expression `f(std::get(std::forward(tp))...)` for `J` in 0..`N-1`, where `N` is the length of the tuples. +The order in which the elements of the tuples are processed is unspecified. + The results are returned as a `std::tuple` with `T...` deduced from the return values of `f` (lvalue references are preserved, rvalue references are returned by value.) - -The order in which the elements of the tuples are processed is unspecified. Calling `f` should not have -side effects.