Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
namespace detail {
template <class...>
struct void_type
using type = void;
template <class... T>
using void_t = typename void_type<T...>::type;
template <class, class = void>
struct has_value_type : std::false_type
template <class T>
struct has_value_type <T,
void_t<typename T::value_type>
> : std::true_type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment