Iterator in STL

xiaoxiao2021-03-06  17

There are 5 items in STL:

1. Input Iterator provides read-only access to data

2. Output Iterator provides only write access to the data

3. Forward Iterator provides read and write operations and advances forward

4. Bidirectional Iterator provides read and write operations and advances forward or backward

5. Random Access Iterator provides read and write operations and can be randomly moved

The pointer is also one of the iterator.

转载请注明原文地址:https://www.9cbs.com/read-44694.html

New Post(0)