Re: a type (typename) as a parameter of a function
You can't pass a type as an actual argument, you can only pass an object of a given type.
I undestand it as the reference to the name of the type is given to the function as a parameter.
No, a reference to an object of that type is given to the function as a parameter.
Correct is better than fast. Simple is better than complex. Clear is better than cute. Safe is better than insecure.
-- Sutter and Alexandrescu, C++ Coding Standards
Programs must be written for people to read, and only incidentally for machines to execute.
-- Harold Abelson and Gerald Jay Sussman
The cheapest, fastest and most reliable components of a computer system are those that aren't there.
-- Gordon Bell