Browsing index pages (2 articles)
↧
Do i need to clear map after assign new map?
Here is an example :pair< map<int, string>, map<int, string> > test;test = data;So do i need to call clear method before assign? Like this :pair< map<int, string>,...
View ArticleAnswer by egellon for Do i need to clear map after assign new map?
http://www.cplusplus.com/reference/map/map/map/Map constructor - constructs empty container with no elements.Pair -Constructs a pair object with its elements value-initialized.So, my guess is that...
View Article
Browsing index pages (2 articles)