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

Function main

Examples/NoModules/Chapter 18/Ex18_05A/Ex18_05A.cpp:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14int main()
15{
16 Array<Array<std::string>> array_of_arrays;
17
18 Array<std::string> array{ buildStringArray(1'000) };
19 array_of_arrays.push_back(array); // Push an lvalue
20
21 array.push_back("One more for good measure");
22 std::cout << std::endl;
23
24 array_of_arrays.push_back(std::move(array)); // Push an rvalue
25}

Callers

nothing calls this directly

Calls 2

buildStringArrayFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected