开发者

C++ iterator, do I need to reset after using set find method

Should I need to call reset method or an开发者_高级运维ything, when I try to use c++ stl set find method multiple times?


set::find is a const method, it doesn't change the container. It doesn't work in findfirst/findnext style. You can call it multiple times without any additional actions.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜