2
0
mirror of https://github.com/boostorg/mp11.git synced 2026-01-19 04:22:10 +00:00

Update documentation of mp_transform

This commit is contained in:
Peter Dimov
2025-11-01 14:12:53 +02:00
parent 24441db797
commit 437ddf60af

View File

@@ -19,6 +19,8 @@ http://www.boost.org/LICENSE_1_0.txt
`mp_transform<F, L1<T1...>, L2<T2...>, ..., Ln<Tn...>>` applies `F` to each successive tuple of elements and returns `L1<F<T1, T2, ..., Tn>...>`.
All lists in `L...` must be of the same size. Otherwise, the result is a substitution failure.
Has limited support of value lists as `L...` under {cpp}17 (for one to three lists.)
In that case, elements are wrapped with `mp_value` before being passed to `F`, and
are unwrapped afterwards. The result is `L1<F<mp_value<T1>, mp_value<T2>, ...>::value...>`.