Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++type traits librarySingle-choice MCQ

In this SFINAE-style detection, what does the trait report?

template<class T, class = void> struct has_size : std::false_type {}; template<class T> struct has_size<T, std::void_t<decltype(std::declval<T>().size())>> : std::true_type {}; // has_size<int>::value == ?