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:
@ -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>
|
||||
|
Reference in New Issue
Block a user