// initialize set std::set<std::string> my_set({"foo", "bar"}); // find element in set my_set.find("foo");