阅读背景:

如果从开始到结束迭代时在映射元素上调用erase()会发生什么?

来源:互联网 

In the following code I loop through a map and test if an element needs to be erased. Is it safe to erase the element and keep iterating or do I need to collect the keys in another container and do a second loop to call the erase()?In the following code I loop through a map and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: