首页 > 代码库 > GeekBand_STL_Iterator
GeekBand_STL_Iterator
Iterators设计将Containers与Algorithms彼此独立,降低耦合性,使两者相互正交.而Iterator作为两者的中间层使得即使其中一方接口改变也能通过改写Iterators转换数据从而使其更改和使用更加安全和方便.
Iterators是一种smart pointer,对operator*和operator->都进行了overloading,使用与指针相似,并重载了operator++与operator--用来遍历容器;
GeekBand_STL_Iterator
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。