Debian Codegraph @

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

raw
1 #include <cstdarg>
2 #include <cstdint>
3 #include <cstdlib>
4 #include <ostream>
5 #include <new>
6
7 constexpr static const uintptr_t TITLE_SIZE = 80;
8
9 template<uintptr_t CAP>
10 using CArrayString = int8_t[CAP];
11
12 struct Book {
13 CArrayString<TITLE_SIZE> title;
14 CArrayString<40> author;
15 };
16
17 extern "C" {
18
19 void root(Book *a);
20
21 } // extern "C"