forked from boostorg/mp11
Update documentation of tuple_transform
This commit is contained in:
@@ -45,12 +45,11 @@ Returns `std::forward<F>(f)`.
|
|||||||
(`std::tuple`, `std::pair` and `std::array` are considered tuples.)
|
(`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
|
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 expression `f(std::get<J>(std::forward<Tp>(tp))...)` for `J` in 0..`N-1`, where `N` is the length of
|
||||||
the tuples.
|
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
|
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.)
|
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.
|
|
||||||
|
Reference in New Issue
Block a user