Say I have an object with key fields a and b. I order them in order of a; should a be equal, then compare b.
I have a set of pointers to such objects. I make a compare function that compares a and if necessary b. I can insert and delete a pointer to an object.
How do I do a find, though, given values of a and b?
Aucun commentaire:
Enregistrer un commentaire