diff options
| author | hachem <im@hachem.wtf> | 2026-09-19 16:20:14 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-19 16:20:14 +0200 |
| commit | cd2a86435e5e413630e0ab0caa48d900e49ea275 (patch) | |
| tree | 559a1bfc52a853b61fe07e0b7aa17eca977f5fd2 /examples | |
| parent | 0a9605b6b13f2e066a69662f5802b397f8b89424 (diff) | |
feat: tuples baby
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/hello.sfinae | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/examples/hello.sfinae b/examples/hello.sfinae index 39f3a62..0154af8 100644 --- a/examples/hello.sfinae +++ b/examples/hello.sfinae @@ -1,8 +1,21 @@ -// prints 5 +// hello, world +// there are no strings. a ::tuple says what its elements say, glued together, +// and each element is a character type, its own distance from '\0' + ::emit< - ::conditional_t< - ::true_type::value, - ::decltype(::difference<'F', 'A'>), - ::void + ::tuple< + ::integral_constant<::char, ::difference<'H', '\0'>>, + ::integral_constant<::char, ::difference<'e', '\0'>>, + ::integral_constant<::char, ::difference<'l', '\0'>>, + ::integral_constant<::char, ::difference<'l', '\0'>>, + ::integral_constant<::char, ::difference<'o', '\0'>>, + ::integral_constant<::char, ::difference<',', '\0'>>, + ::integral_constant<::char, ::difference<' ', '\0'>>, + ::integral_constant<::char, ::difference<'w', '\0'>>, + ::integral_constant<::char, ::difference<'o', '\0'>>, + ::integral_constant<::char, ::difference<'r', '\0'>>, + ::integral_constant<::char, ::difference<'l', '\0'>>, + ::integral_constant<::char, ::difference<'d', '\0'>>, + ::integral_constant<::char, ::difference<'!', '\0'>> > >::commit; |
