Actually no, the multiset iterator currently doesn't keep a stack since it allows the multiset to be changed without loosing track. It'd be possible to store the stack if it locks the index part of the multiset, like the mapping iterator. It wouldn't be difficult to extend it with an option to allow that mode of operation. Maybe it should even be the default mode?
/ Martin Stjernholm, Roxen IS
Previous text:
2003-01-30 18:58: Subject: Re: hybrid of array & list
Ah, I see. But if you have an "index" object, you could keep the stack in it as well. (I assume that is done in a multiset iterator?)
/ Mirar