how do i create an empty stdmap object? closed

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.

Leave a Comment

Your email address will not be published.

Scroll to Top