std::set with user defined type, how to ensure no duplicates February 23, 2023 by Tarik operator== is not used by std::set. Elements a and b are considered equal iff !(a < b) && !(b < a)