5 Apr
2005
5 Apr
'05
1:17 p.m.
Hi, I can confirm that the cast-variants don't prevent the warning. "return !! *prev_ptr;" and "return *prev_ptr? true: false;" both seem to work. Back to the main topic: I find it quite unsatisfiying that there is seems to be no way to avoid searching for the same position twice ("get_bucket", "find_iterator"). I don't see where the hint-version of insert could be of any use, especially since the standard says "Implementations are permitted to ignore the hint". I would need a function like "insert_if" taking a predicate that decides whether to insert when an object with the same key already exists. Martin