|
Boost Users : |
Subject: Re: [Boost-users] [mpl] merging 2 maps
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-05-02 07:53:04
Igor R wrote:
> In the current version of boost, what's the right way to merge the 2
> above mpl maps - to get 1 map that contains:
>
> mpl::pair<K1, V1>,
> mpl::pair<K1, V3>,
> mpl::pair<K2, V2>
> mpl::pair<K3, V4>
>
Use fold with insert :
fold<mp1, mp2, insert< _1, _2> >
?
-- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net