Boost logo

Boost Users :

Subject: [Boost-users] [mpl] merging 2 maps
From: Igor R (boost.lists_at_[hidden])
Date: 2010-05-02 07:36:25


Hello,

typedef mpl::map
<
  mpl::pair<K1, V1>,
  mpl::pair<K2, V2>
> m1;

typedef mpl::map
<
  mpl::pair<K1, V3>,
  mpl::pair<K3, V4>
> m2;

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>

Thanks.


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