I usually use the following line to declare/init a unique_ptr for a class named T:
unique_ptr<T> tPtr(new T());
However, I've also seen the following.
unique_ptr<class T> tPtr(new T());
I've tested both and there seems to be no difference when using the two. So, is there any advantage in putting the class keyword? For example, does it optimize anything? Or is there more to it?