forked from boostorg/mp11
Update documentation of tuple_for_each
This commit is contained in:
@ -32,7 +32,7 @@ The name of the function doesn't match the {cpp}17 one to avoid ambiguities when
|
||||
|
||||
template<class Tp, class F> 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<J>(std::forward<Tp>(tp)))` for `J` in 0..`N-1`, where `N` is `std::tuple_size<typename std::remove_reference<Tp>::type>::value`.
|
||||
|
||||
Returns `std::forward<F>(f)`.
|
||||
|
Reference in New Issue
Block a user