Re:What to use instead of std::set [pdf]
by kazinator on Thursday August 25, 2016 @03:06PM
(#12361573)
complEment is tricky. How do you propose that it be encoded?
You don't literally want to create a complement set and populate it with every possible object that is not in the original set (but could be, according to type).
A clone of the set with a complement flag? That could work.
At least until someone constructs a complement of a set, and then wants to iterate over it, oops!
You don't literally want to create a complement set and populate it with every possible object that is not in the original set (but could be, according to type).
A clone of the set with a complement flag? That could work.
At least until someone constructs a complement of a set, and then wants to iterate over it, oops!