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

Function main

Examples/NoModules/Chapter 18/Ex18_06/Ex18_06.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

buildStringArrayFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected