开发者

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

开发者 https://www.devze.com 2023-01-09 06:02 出处:网络
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

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

精彩评论

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