map_iter->second程序运行到if(map_iter->second > 0)是报map set iterator not dereferencable

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 21:23:02
map_iter->second程序运行到if(map_iter->second>0)是报mapsetiteratornotdereferencablemap_iter->second程序

map_iter->second程序运行到if(map_iter->second > 0)是报map set iterator not dereferencable
map_iter->second

程序运行到if(map_iter->second > 0)是报map set iterator not dereferencable

map_iter->second程序运行到if(map_iter->second > 0)是报map set iterator not dereferencable
map::reverse_iterator map_iter = mapval.rbegin();
for(; map_iter != mapval.rend(); map_iter++)
iterator都是从begin()开始到end()结束,哪怕逆向也是一样