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

Function computeValues

Examples/Modules/Chapter 16/Ex16_07D/Ex16_07D.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26std::vector<double> computeValues(size_t howMany)
27{
28 std::vector<double> values;
29 for (size_t i{}; i < howMany; ++i)
30 values.push_back(computeValue(i));
31 return values;
32}
33
34double computeValue(size_t x)
35{

Callers 1

mainFunction · 0.70

Calls 2

computeValueFunction · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected