|
|
|
|||||
|
a problem about how to modify a value at the iterator’s current position!
first i define a struct and a sequence in ice file.
struct stCommMess { string sUserId; string sMessage; }; sequence <stCommMess> seqMessList; then build a freeze map,UserIdMessageMap, the key_value is string ,and the map_value is seqMessList. when i would like to modify the map_value ,i have to do like this: ... UserIdMessageMap::iterator p, seqMessList b = p->second; b.push_back(a);//a is object of stCommMess p.set(b); .... a simple push_back operate has to do like that ,as a low efficient operate. is there another method to insert the stCommMess into the map? |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to modify server properties on the fly? | ymcao_cn | Help Center | 4 | 07-26-2006 10:10 PM |
| IcePatch2 modify | hellocyf | Patches | 3 | 07-26-2006 01:38 AM |
| Freeze Map iterator should add operator += n -=n | dragzhb | Comments | 4 | 10-18-2004 11:48 PM |
| about Freeze::Map::iterator | sylvain | Comments | 4 | 07-21-2003 12:28 PM |
| OpenSSLPluginI.cpp problem on FreeBSD-CURRENT | rodrigc | Bug Reports | 2 | 05-30-2003 09:54 AM |