how to check if an item is in a set cpp code example
Example: c++ find element in set
// initialize set
std::set<std::string> my_set({"foo", "bar"});
// find element in set
my_set.find("foo");
// initialize set
std::set<std::string> my_set({"foo", "bar"});
// find element in set
my_set.find("foo");