Answers

Question and Answer:

  Home  C++ Containers

⟩ Explain different types of iterators, i.e. input_iterator, output_iterator etc?

Input Iterator: These iterators can read values in the forward movement. They can be incremented, compared and dereferenced.

Ouptut Iterator: They write values in the forward movement. They can be incremented and dereferenced.

Forward Iterator: They are like input and output iterators that can read and write values in forward movement.

Bidirectional iterators: These can Read and write values with forward and backward movement and can be incremented, decremented.

random_access_iterator: Can read and write values randomly.

 222 views

More Questions for you: