On 2010-05-20 at 23:40:55 [+0200], Clemens Zeidler <clemens.zeidler@xxxxxxxxxxxxxx> wrote: > Am 21.05.2010, 02:00 Uhr, schrieb Stephan Assmus <superstippi@xxxxxx>: > > >> The class doesn't have an O(1) HasItem(), though. > > But the AnchorList version works only as long as there is only one list > > at > > all, or am I missing something? > > Yes, each object can only be put in one list at the same time because > there is only one anchor per object. In the WindowList there were also a > index to have a particular number of anchors per object... No, I mean something else. If you have two AnchorList instances, list A and list B, and one item is in List A, then if you invoke B->HasItem(item), it will return true, even though the item is really in list A. Best regards, -Stephan