Hard
Detecting a nested value_type with std::void_t
What does this program print?
main.cpp
#include <iostream>
#include <type_traits>
template <typename T, typename = void>
struct has_value_type : std::false_type {};
template <typename T>
struct has_value_type<T, std::void_t<typename T::value_type>> : std::true_type {};
struct A { using value_type = int; };
struct B {};
int main() {
std::cout << has_value_type<A>::value << has_value_type<B>::value << std::endl;
}34 of 117 in C++