Iterator Patterns: 迭代器的封装一定离不开容器,但是自己写容器不仅仅给STL的容器套个壳,就需要用到双重指针来存储源数据
IntentProvideawaytoaccesstheelementsofanaggregateobjectsequentiallywithoutexposingitsunderlyingrepresentation.//refactoringtopattern.cpp:此文件包含"main"函数。程序执行将在此处开始并结束。//#include#include#include#defineDE