Boost logo

Boost Users :

Subject: Re: [Boost-users] [mpl] merging 2 maps
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-05-02 08:20:17


Igor R wrote:
>> 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
About the same according to the semantic given here:
http://www.boost.org/doc/libs/1_42_0/libs/mpl/doc/refmanual/copy.html

-- 
___________________________________________
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