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

Function main

Examples/Modules/Chapter 18/Ex18_02/Ex18_02.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15int main()
16{
17 const size_t numArrays{ 10 }; // Fill 10 Arrays with 1,000 strings each
18 const size_t numStringsPerArray{ 1000 };
19
20 std::vector<Array<std::string>> vectorOfArrays;
21 vectorOfArrays.reserve(numArrays); // Inform the vector<> how many Arrays we'll be adding
22
23 for (size_t i {}; i < numArrays; ++i)
24 {
25 vectorOfArrays.push_back(buildStringArray(numStringsPerArray));
26 }
27}

Callers

nothing calls this directly

Calls 2

buildStringArrayFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected