fork(1) download
  1. #include <iostream>
  2. #include <set>
  3. #include <string>
  4. #include <unordered_set>
  5.  
  6. int main()
  7. {
  8. std::set<std::string> a1 {"a", "b"};
  9. std::set<std::string> b1 {"b", "a"};
  10. std::cout << std::boolalpha << (a1 == b1) << std::endl;
  11.  
  12. std::unordered_set<std::string> a2 {"a", "b"};
  13. std::unordered_set<std::string> b2 {"b", "a"};
  14. std::cout << std::boolalpha << (a2 == b2) << std::endl;
  15. }
  16.  
Success #stdin #stdout 0s 3436KB
stdin
Standard input is empty
stdout
true
true