Basically- I'd like the someSet iterator prNInsert to stay pointing to the SomeValueN element, even though things are being inserted/removed in the set to which it belongs before and after it.Code:set<DWORD> someSet; pair< set<DWORD>::Iterator, bool > prInsertNumN; someSet.Insert(SomeValue1); someSet.Insert(SomeValue2); ... prNInsert = someSet.Insert(SomeValueN); someSet.Insert(SomeValueN+1); someSet.Insert(SomeValueN+2); ... //prNInsert.first has become invalid...
Is this even possible- and ny ideas how I may do this?
Thanks heaps![]()




Reply With Quote