map question
string key = "1";
string channel = "#channel";
KeyStorer.insert(MapFunction::value_type(key, channel));
how do i then replace the value of key 1 with a new channel?
do i clear the channel stored in key 1?
any ideas guys?
[255 byte] By [
pouncer] at [2007-11-11 7:51:07]

# 1 Re: map question
Erase the element of the map which has the given key:
size_type erase(const key_type& k);
then create a new element with the same key and new channel
nspils at 2007-11-11 21:01:54 >

# 2 Re: map question
erase the old pair from the map,
create a new pair with the same key and insert it.
Danny at 2007-11-11 21:02:48 >
