Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/const_generics_thru.cpp

raw
1 #include <cstdarg>
2 #include <cstdint>
3 #include <cstdlib>
4 #include <ostream>
5 #include <new>
6
7 template<uintptr_t N>
8 struct Inner {
9 uint8_t bytes[N];
10 };
11
12 template<uintptr_t N>
13 struct Outer {
14 Inner<N> inner;
15 };
16
17 extern "C" {
18
19 Outer<1> one();
20
21 Outer<2> two();
22
23 } // extern "C"