首页 > 代码库 > GeekBand_STL_Iterator

GeekBand_STL_Iterator

Iterators设计将Containers与Algorithms彼此独立,降低耦合性,使两者相互正交.而Iterator作为两者的中间层使得即使其中一方接口改变也能通过改写Iterators转换数据从而使其更改和使用更加安全和方便.

Iterators是一种smart pointer,对operator*和operator->都进行了overloading,使用与指针相似,并重载了operator++与operator--用来遍历容器;

GeekBand_STL_Iterator