Change back mp_for_each to not use mp_identity

This commit is contained in:
Peter Dimov committed 2017-05-29 03:04:12 +03:00
1 parent 75f7f442fa
commit c7923ca041
4 files changed
+7 -9

No files matched your search

+1 -1
View File
@@ -284,7 +284,7 @@ is `mp_size<L>`.
[section `mp_for_each<L>(f)`]
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.
`mp_for_each<L>(f)` calls `f` with `T()` for each element `T` of the list `L`, in order.
Returns `std::forward<F>(f)`.
[endsect]