Jump to

wtbs-l2-mapUse2

(random out of 5)

How to find if an element is in a STL map container, defined as below ?

#include <map>
#include <string>
using std::map, std::string;

map<string, int> dico = { {"CPU", 10}, {"GPU", 15}, {"RAM", 20} };

???