Boost logo

Boost Users :

Subject: [Boost-users] [fusion] "modify" value in map
From: Jean-Louis Leroy (jl_at_[hidden])
Date: 2009-09-26 17:15:05


How can I create a map that has the same content as another rmap, except
for a given key which has a new associated value ? I'm looking for
something like replace_key<Key>(Sequence, Value) in the doc but I cannot
find it. I think I can build it with push_back(erase_key<Key>(seq),
make_pair<Key>(newval)) but if it already exists...

Thanks,
J-L


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