I need to set a boolean based on whether a string is present in my data dictionary, with a structure of:
std::map< string, foo > dd
If the string I’m looking for is there, then the boolean is true, and vice versa. Can someone help me with how do I do this in C++?
Thanks.
Suppose data dictionary is std::map< string, foo > dict;