Boost logo

Boost Users :

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


> Use fold with insert :
>
> fold<mp1, mp2, insert< _1, _2> >
>
> ?

Thanks!
And what's the difference from:

typedef copy<m1, mpl::inserter<m2, insert<_1, _2> > >::type m3;

Which one should be faster?


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