
18 Mar
2017
18 Mar
'17
2:14 p.m.
On 03/18/2017 02:55 PM, Peter Dimov via Boost wrote:
mp_transform is variadic, it works on more than one list.
Ok. How about having two versions? One that takes a single typelist (at the beginning) and one that takes an arbitrary number. The latter should probably be named differently to indicate that its arguments deviate from the rest of the algorithms (e.g mp_multi_transform.)
mp_transform<std::pair, mp_list<int, float>, mp_list<char, double>>
->
mp_list<std::pair<int, char>, std::pair<float, double>>
Oh, a zip. That looks useful. You should add that example to the documentation.