迭代器的问题 [英] a question of iterator

查看:71
本文介绍了迭代器的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开 | 选择 | Wrap | 行号

推荐答案

读取此链接。简而言之:在容器(结构)改变之后,你的迭代器不再有效。


亲切的问候,


Jos
Read the second paragraph of this link. In short: your iterator isn''t valid anymore after a (structural) change of the container.

kind regards,

Jos


非常感谢您的帮助,但这是一个列表,而不是矢量。
Thanks very much for your help,but it is a list,not a vector.


@evenstar

$ b $嗯,傻傻的......看起来你的rbegin()对象过度活跃;据我所知,这不应该发生;我会给它一些更多的想法;奇怪......


亲切的问候,


Jos
@evenstar
Ah, silly me ... it looks like your rbegin() object is ''over active''; this shouldn''t happen as far as I know; I''ll give it some more thoughts; strange ...

kind regards,

Jos


这篇关于迭代器的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆