Skip to content

Instantly share code, notes, and snippets.

@picanumber
Last active December 18, 2016 22:22
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/19a5b70d26611e1848de8667e58b59f2 to your computer and use it in GitHub Desktop.
Save picanumber/19a5b70d26611e1848de8667e58b59f2 to your computer and use it in GitHub Desktop.
Example application of metafunction currying
struct S0 {};
struct alignas(2) S1 {};
struct alignas(4) S2 {};
struct alignas(8) S3 {};
int main()
{
static_assert(universal_quantifier<curry<is_smaller, S0>::type, S1, S2, S3>);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment