Anonymous template typename/class declarations

Viewed 3944

I'm curious as to why anonymous template typename/class declarations are allowed, such as the following:

template <typename, class, typename> struct TemplateTest1 { int a; float b ; } ;
TemplateTest1 <int, int, int> tt1 ;

Can anyone explain the practical value of these anonymous types? Do they affect the expression of the templated structure?

2 Answers
Related