MCPcopy Create free account
hub / github.com/0voice/cpp_new_features / main

Function main

cpp_11/002_grammar_alignof.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17struct alignas(64) Empty64 {};
18
19int main()
20{
21 std::cout << "Alignment of" "\n"
22 "- char : " << alignof(char) << "\n"
23 "- pointer : " << alignof(int*) << "\n"
24 "- class Foo : " << alignof(Foo) << "\n"
25 "- class Foo2 : " << alignof(Foo2) << "\n"
26 "- empty class : " << alignof(Empty) << "\n"
27 "- alignas(64) Empty: " << alignof(Empty64) << "\n";
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected