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

Function main

Examples/NoModules/Chapter 18/Ex18_05B/Ex18_05B.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

buildStringArrayFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected