What is proper syntax for a function that takes a template parameter as an argument i.e.
void myFunction (const Foo::Bar<T>& x)
Is it
template<typename T>
void myFunction (const typename Foo::Bar<T>& x)
Also, should I use
template<typename T>
Or
template<class T>
Thanks.