My original problem was how to map multidimensional int array to string.Following was the solution:thanks to Ikspeto
map<int , map<int,string>> _myvar;
_myvar[0][0] = "Some String00";
_myvar[0][1] = "Some String01";
_myvar[0][2] = "Some String02";
_myvar[1][0] = "Some String10";
Now my problem is how to implement find or count method of map on this?
I did not understand your question very well, but I think this is what you are looking for :
Note that you must leave a blank space after string> .
or
If you want to convert every character to int :
EDIT
Post your full source code. My example is working at my local compiler. In the code sample you gave you are declaring a variable called _menu_item, but you are using _myvar. You may have declared _myvar differently somewhere in you full code.
For finding a map entry by the first value you can use find(). Find returns an iterator.
For searching by value you can use this :