In the video, we were shown that using forwardIterator we could use that template for all types of data structures no matter what iterator category the fall in.
But I cant understand how forwardIterator will assist in random access and bidirectional iterator type data structures.
Iterators doubt in c++
hello @coderajay03
they are also a valid forward iterator .
check this diagram.
for more details u can refer->link
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.