1
0
forked from boostorg/mp11

Merge pull request #58 from bernhardmgruber/foreach

Add a note to mp_for_each for lists with elements which are not default-constructible
This commit is contained in:
Peter Dimov
2021-03-04 20:12:23 +02:00
committed by GitHub

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>