Reputation: 3356
template<typename T>
using Value_type<T> = typename T::value_type;
I get errors:
expected '=' before '<' token
expected type-specifier before '<' token
Upvotes: 0
Views: 50
Reputation: 476930
Like this:
template <typename T>
using Value_type = typename T::value_type;
Just like in the declaration of any primary template, the name of the template itself is not punctuated with the template parameter list.
Upvotes: 4
Reputation: 42889
template<typename T>
using Value_type = typename T::value_type;
Upvotes: 2