Created
May 4, 2015 22:33
-
-
Save vinniefalco/67fccec3a3bba4fd9779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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