Код: Выделить всё
typedef map::iterator mi;
map m;
m.insert(make_pair("f","++--"));
pair p = m.equal_range("f");//I'm not sure if equal_range does what I want
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/1939953/how-to-find-if-a-given-key-exists-in-a-stdmap[/url]
Мобильная версия