Quantcast
Channel: Understanding Alias Templates - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Daniel Frey for Understanding Alias Templates

I don't think the shown example really shows what void_t is good for as it only shows one use case, but when you look attemplate<typename T>struct has_to_string<T,...

View Article



Answer by TartanLlama for Understanding Alias Templates

In Barry's example from your linked question:template<typename T, typename = void>struct has_to_string: std::false_type { };template<typename T>struct has_to_string<T,...

View Article

Understanding Alias Templates

I asked a question that has several references to the code:template <typename...>using void_t = void;I believe I have a generally misunderstand alias templates:Why wouldn't you just evaluate...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images