Hi all,
If I'm placing things in a set, and I don't care whether or not they're sorted ( I just want to take advantage of the set's ability to make the "key" the object itself), must I overload the operator<? I've overloaded operator== so it knows whether or not two objects are the same.
Thoughts?
Thanks in advance.
EDIT: With a bit of testing, I've discovered the compiler complains when I take away the operator<. Is there a way around this, or must it be present to use the insert() function?