Consider you have a set of objects X (e.g., A, B, C, D) that you wish to divide into non-empty subsets that cover all of X. Mathematically, a partition of the set.
I have a vector of pointers to objects. I\'d like to remove objects from this vector according to an attribute that\'s reported by a member function.