Skip to content

Instantly share code, notes, and snippets.

@picanumber
Last active December 18, 2016 22:18
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 picanumber/10616062ba3b98502f1d48d4f52a6ad5 to your computer and use it in GitHub Desktop.
Save picanumber/10616062ba3b98502f1d48d4f52a6ad5 to your computer and use it in GitHub Desktop.
template<typename T> concept bool Data = requires(T t) { t.data; };
template<Data... Ts>
requires existential_quantifier<std::is_move_constructible, Ts...>
auto f(Ts... ts)
{
std::cout << "version for data\n";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment