hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/examples/xs.sfinae
blob: 7cb7dd94dd49e9880e8bab7aa3d5ca43dbbd27cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
::emit<
    ::decltype(
        ::extent<
            ::array<
                ::array<
                    ::remove_cv_t<
                        ::int32_t
                    >,
                    ::integral_constant<
                        ::size_t,
                        ::tuple_size<
                            ::array<
                                ::byte,
                                ::difference<'Z', 'F'>
                            >
                        >::value
                    >::value
                >,
                ::integral_constant<
                    ::size_t,
                    ::difference<'Z', 'F'>
                >::value
            >
        >::value
    )
>::commit;

// an array type says its extent, a bare type says its name
::emit<
    ::array<
        ::byte,
        ::difference<'Z', 'F'>
    >
>::commit;