Rename mp_for_index to mp_with_index in documentation

This commit is contained in:
Peter Dimov committed 2017-06-04 13:44:08 +03:00
1 parent 592a4706a6
commit d486ec56d2
2 files changed
+12 -12

No files matched your search

+5 -5
View File
@@ -289,14 +289,14 @@ is `mp_size<L>`.
Returns `std::forward<F>(f)`.
[endsect]
[section `mp_for_index<N>(i, f)`]
template<std::size_t N, class F> decltype(std::declval<F>()(std::declval<mp_size_t<0>>())) mp_for_index( std::size_t i, F && f );
[section `mp_with_index<N>(i, f)`]
template<std::size_t N, class F> decltype(std::declval<F>()(std::declval<mp_size_t<0>>())) mp_with_index( std::size_t i, F && f );
`mp_for_index<N>(i, f)` calls `f` with `mp_size_t<i>()` and returns the result. `i` must be less than `N`.
`mp_with_index<N>(i, f)` calls `f` with `mp_size_t<i>()` and returns the result. `i` must be less than `N`.
template<class N, class F> decltype(std::declval<F>()(std::declval<mp_size_t<0>>())) mp_for_index( std::size_t i, F && f );
template<class N, class F> decltype(std::declval<F>()(std::declval<mp_size_t<0>>())) mp_with_index( std::size_t i, F && f );
Returns `mp_for_index<N::value>(i, f)`.
Returns `mp_with_index<N::value>(i, f)`.
[endsect]
[endsect:algorithm]