Skip to content

Instantly share code, notes, and snippets.

@vinniefalco
Created May 4, 2015 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinniefalco/67fccec3a3bba4fd9779 to your computer and use it in GitHub Desktop.
Save vinniefalco/67fccec3a3bba4fd9779 to your computer and use it in GitHub Desktop.
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