1
0
forked from boostorg/mp11

Update documentation of tuple_transform

This commit is contained in:
Peter Dimov
2020-05-24 04:35:32 +03:00
parent 348166471e
commit cad3c61045

View File

@@ -45,12 +45,11 @@ Returns `std::forward<F>(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<J>(std::forward<Tp>(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<T...>` 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.