new editSMDKLFMsdfjlksdjfkmsdl;fk;ldskf;l kjmlkmsfD ;lm;lsdmfl; klmklsdmflkm kmlksgdklgf;l jnslkdfnlksd k;ldf;l m;mlkm;sd
Hello Friends this is our first blog
- Input iterator:
- An Input iterator is an iterator that allows the program to read the values from the container.
- Dereferencing the input iterator allows us to read a value from the container, but it does not alter the value.
- An Input iterator is a one way iterator.
- An Input iterator can be incremented, but it cannot be decremented.
- Output iterator:
- An output iterator is similar to the input iterator, except that it allows the program to modify a value of the container, but it does not allow to read it.
- It is a one-way iterator.
- It is a write only iterator.
- Forward iterator:
- Forward iterator uses the ++ operator to navigate through the container.
- Forward iterator goes through each element of a container and one element at a time.
- Bidirectional iterator:
- A Bidirectional iterator is similar to the forward iterator, except that it also moves in the backward direction.
- It is a two way iterator.
- It can be incremented as well as decremented.
- Random Access Iterator:
- Random access iterator can be used to access the random element of a container.
- Random access iterator has all the features of a bidirectional iterator, and it also has one more additional feature, i.e., pointer addition. By using the pointer addition operation, we can access the random element of a container.

Comments
Post a Comment