编程语言:C++编译器:VS2022 社区版操作系统:Windows11我自定义了类型CustomType,现在我想使用std::unordered_set来对std::unordered_set进行交并补运算,比如说std::set_union。在运行的过程中出现异常,即,sequence not ordered。请问怎么解决?
unordered_set不支持 排序,所以不能用 set_union,既然用unordered_set,直接写一个不麻烦