MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / main

Function main

Examples/Modules/Chapter 18/Ex18_03/Ex18_03.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14int main()
15{
16 Array<std::string> strings { 123 };
17 strings = buildStringArray(1'000); // Assign an rvalue to strings
18
19 Array<std::string> more_strings{ 2'000 };
20 strings = more_strings; // Assign an lvalue to strings
21}

Callers

nothing calls this directly

Calls 1

buildStringArrayFunction · 0.70

Tested by

no test coverage detected