R
Rune Allnor
Hi all.
I have a collection (e.g. std::list or std::set) of items.
During the execution of some function in the item class
the conclusion is reached that "this item has done its job,
and should be removed from the collection". [ The case in
point is a GUI application, where the item is a corner point
in some polygon, that recieves some 'delete' event. ]
There has to be some standard pattern for handling these
kinds of things.
- Which pattern would this be?
- Where can I find descriptions?
Rune
I have a collection (e.g. std::list or std::set) of items.
During the execution of some function in the item class
the conclusion is reached that "this item has done its job,
and should be removed from the collection". [ The case in
point is a GUI application, where the item is a corner point
in some polygon, that recieves some 'delete' event. ]
There has to be some standard pattern for handling these
kinds of things.
- Which pattern would this be?
- Where can I find descriptions?
Rune