Can you tell me why we why we write the class key word while writing template

template<class forwarditerator, class T>

hello @anshulgurawalia
its just a syntax.
placeholder is a datatype right? hence we use the name class(a custom datatype).

u can also use typename in place of class.
like this->
template < typename T>

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.