fork(2) download
  1. #include <iostream>
  2. #include <functional>
  3. #include <string>
  4. #include <unordered_set>
  5.  
  6. int main()
  7. {
  8. std::unordered_set<std::string> dictionary;
  9.  
  10. std::string str = "Meet the new boss...";
  11. dictionary.insert(str);
  12. auto it = dictionary.find(str);
  13.  
  14. std::cout << *it << '\n';
  15. }
Success #stdin #stdout 0s 3020KB
stdin
Standard input is empty
stdout
Meet the new boss...