[Patch] Uglify some names in _Rb_tree
Howard Hinnant
hhinnant@apple.com
Sat Jan 7 00:00:00 GMT 2006
On Jan 6, 2006, at 3:07 PM, Paolo Carlini wrote:
> Paolo Carlini wrote:
>
>> Howard, while I finish preparing the patch proper + some tests for
>> multimap (I hope to have something by tomorrow), can you suggest a
>> stategy for testing multiset (wrt the insert at lower bound
>> thing)?!? At
>> the moment, I have big troubles, if I'm not allowed to look
>> "inside" the
>> implementation details (something usually we don't do).
>>
>>
> Nvermind, now I see a very easy way: by using the iterator returned by
> insert with hint, then incrementing or decrementing it and checking to
> what it points.
>
> Sorry ;)
> Paolo.
That sounds good. I would've suggested storing a pair<key, value>
(say two ints) in the set, and using a custom comparator that only
looked at first. But your suggestion sounds just as good.
-Howard
More information about the Libstdc++
mailing list