From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2007-08-14 09:02:49
Martin Apel wrote in message news:46C19A4F.9080505_at_simpack.de...
> Aleksey Gurtovoy wrote:
>> All in all, to get the behavior you want with the current library you
>> need to actually merge two maps into a third one.
> I'm not sure, if I understand this correctly. What is the recommended
> way of merging two maps into a third one? Is it possible with the
> current MPL implementation?
> I only found an map::insert metafunction
> to insert a single element, but not a whole range of pairs.
You can actually to do something along these lines (untested):
, inserter< map0<>, insert<_1,_2> >
-- Aleksey Gurtovoy MetaCommunications Engineering
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk