阅读背景:

在迭代时从向量中删除项目?

来源:互联网 

I have a vector that holds items that are either active or inactive. I want the size of this vector to stay small for performance issues, so I want items that have been marked inactive to be erased from the vector. I tried doing this while iterating but I am getting the error "vector iterators incompatible".I have a vector that holds items that are eithe




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

分享到: