1
0
forked from boostorg/mp11

Add a note to mp_for_each for lists with elements which are not default-constructible

This commit is contained in:
Bernhard Manfred Gruber
2021-03-04 12:46:48 +01:00
parent 2d709e5639
commit 09780a6df8

View File

@ -907,6 +907,8 @@ template<class... T> void print( std::tuple<T...> const & tp )
}
```
In case the elements of the list `L` are not default-constructible, you can use `mp_for_each<mp_transform<mp_identity, L>>`.
## mp_with_index<N>(i, f)
template<std::size_t N, class F>