Find for std::map only takes a key value. So you would call it like this:
if (purchase_list.find("SearchName") != purchase_list.end())
std::cout << "SearchName found!!" << std::endl;
0
solved c++ find a key match in a bi-dimensional map (map of map)