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

Function main

Examples/Modules/Chapter 18/Ex18_06/Ex18_06.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

buildStringArrayFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected