Re: [boost] bounded multiset

2003-01-05 Thread Vladimir Prus
David Abrahams wrote: Vladimir Prus <[EMAIL PROTECTED]> writes: I'm in a need of a container, which: - is sorted - has iterators which are not invalidated on 'insert' - keeps no more than k elements. If more elements are inserted, the smallest ones should be erased. I'm considering writi

Re: [boost] bounded multiset

2003-01-05 Thread David Abrahams
Vladimir Prus <[EMAIL PROTECTED]> writes: > I'm in a need of a container, which: > > - is sorted > - has iterators which are not invalidated on >'insert' > - keeps no more than k elements. If more elements are >inserted, the smallest ones should be erased. > > > I'm considering writing a w

[boost] bounded multiset

2003-01-05 Thread Vladimir Prus
I'm in a need of a container, which: - is sorted - has iterators which are not invalidated on 'insert' - keeps no more than k elements. If more elements are inserted, the smallest ones should be erased. I'm considering writing a wrapper over std::multiset for this purpose. But before I star