Iterators example

Instead of writing class T in the code template<class ForwardIterator, class T>, why can’t we write template< typename ForwardIterator, typename T> ?

is the format when u need to template 2 different classes simultaneoulsy and that how the standards of c++ go.

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.