forked from boostorg/mp11
Change back mp_for_each to not use mp_identity
This commit is contained in:
1 parent
75f7f442fa
commit
c7923ca041
4 files changed
+7
-9
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user