update
This commit is contained in:
parent
42f4c55a3e
commit
d3f3e02a37
@ -10,7 +10,7 @@
|
||||
|
||||
上一节指出了迭代器的作用,依旧如下图所示:
|
||||
|
||||

|
||||

|
||||
|
||||
迭代器是指向序列元素的指针的一种抽象。通过使用迭代器,我们可以访问序列中的某个元素、改变序列中的某个元素的值、使迭代器向前或向后行走等等。
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
- 单向移动读写迭代器 Forward Iterator
|
||||
- 双向移动读写迭代器 Bidirectional Iterator
|
||||
|
||||

|
||||

|
||||
|
||||
例如:我们实现了 advanceII, advanceBI, advanceRAI 分别代表迭代器类型是Input Iterator,Bidirectional Iterator和Random Access Iterator的对应实现。
|
||||
|
||||
@ -49,7 +49,7 @@ void advance(Iterator& i) {
|
||||
|
||||
下面来进行实现,首先给出一个总体结构图:
|
||||
|
||||

|
||||

|
||||
|
||||
定义出下面tag:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user