Any better solution?
Taking your question literally, no. There is no better solution.
This will create a default constructed, and therefore empty std::map<int,int>
.
std::map<int,int> m;
CLICK HERE to find out more related problems solutions.
Any better solution?
Taking your question literally, no. There is no better solution.
This will create a default constructed, and therefore empty std::map<int,int>
.
std::map<int,int> m;
CLICK HERE to find out more related problems solutions.