I want to define something like
Map myMap;
The above declaration is accepted by c++ compiler and no error is thrown bu
According to documentation pair can hold (and be defined for) distinct classes. C array is not a class, but a construct. You must define your own class with overloaded operator[](). Might need comparison operators as well
operator[]()