This is an interview question.
Referring to the sample code, which one of the operators needs to be overridden in order to use st
st
A set keeps out the duplicates without needing operator= or operator!= by using the notion of equivalence. Two items are equivalent if neither is less than the other:
operator=
operator!=
if (!(a < b || b < a)) // equivalent!