Last active
December 18, 2016 22:22
-
-
Save picanumber/19a5b70d26611e1848de8667e58b59f2 to your computer and use it in GitHub Desktop.
Example application of metafunction currying
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
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