Skip to content

Commit 437ddf6

Browse files
committed
Update documentation of mp_transform
1 parent 24441db commit 437ddf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/mp11/algorithm.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ http://www.boost.org/LICENSE_1_0.txt
1919

2020
`mp_transform<F, L1<T1...>, L2<T2...>, ..., Ln<Tn...>>` applies `F` to each successive tuple of elements and returns `L1<F<T1, T2, ..., Tn>...>`.
2121

22+
All lists in `L...` must be of the same size. Otherwise, the result is a substitution failure.
23+
2224
Has limited support of value lists as `L...` under {cpp}17 (for one to three lists.)
2325
In that case, elements are wrapped with `mp_value` before being passed to `F`, and
2426
are unwrapped afterwards. The result is `L1<F<mp_value<T1>, mp_value<T2>, ...>::value...>`.

0 commit comments

Comments
 (0)