Purpose of class = void in C++?

Viewed 2174

What is the purpose of the class = void in the following code snippets?

template< class, class = void >
struct has_type_member : false_type { };

template< class T >
struct has_type_member<T, void_t<typename T::type>> : true_type { };
1 Answers
Related