diff --git a/doc/html/mp11.html b/doc/html/mp11.html index cd95a45..5f9f706 100644 --- a/doc/html/mp11.html +++ b/doc/html/mp11.html @@ -136,6 +136,7 @@
mp_all_of<L, P>
mp_none_of<L, P>
mp_any_of<L, P>
+
mp_for_each<L>(f)
Set Operations, <boost/mp11/set.hpp>
@@ -1453,6 +1454,21 @@ one element of L, mp_false otherwise. When L is empty, the result is mp_false.

+
+ +
template<class L, class F> constexpr F mp_for_each(F&& f);
+
+

+ mp_for_each<L>(f) calls + f with mp_identity<T>() for each element T + of the list L, in order. +

+

+ Returns std::forward<F>(f). +

+

@@ -1866,7 +1882,7 @@

- +

Last revised: May 12, 2017 at 16:48:16 GMT

Last revised: May 12, 2017 at 21:20:08 GMT


diff --git a/doc/mp11/algorithm.qbk b/doc/mp11/algorithm.qbk index b325077..adea9a1 100644 --- a/doc/mp11/algorithm.qbk +++ b/doc/mp11/algorithm.qbk @@ -244,4 +244,12 @@ for the elements of `L` and `mp_false` for the elements of `L`. Re `mp_any_of` is `mp_true` when `P` holds for at least one element of `L`, `mp_false` otherwise. When `L` is empty, the result is `mp_false`. [endsect] +[section `mp_for_each(f)`] + template constexpr F mp_for_each(F&& f); + +`mp_for_each(f)` calls `f` with `mp_identity()` for each element `T` of the list `L`, in order. + +Returns `std::forward(f)`. +[endsect] + [endsect:algorithm]