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

Function main

Exercises/Modules/Chapter 20/Soln20_07/Soln20_07.cpp:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18int main()
19{
20 const size_t num_numbers{ 20 };
21
22 auto numbers{ iota(1, 20) };
23
24 printVector("The original set of numbers", numbers);
25
26 auto odd_numbers{ numbers | filter([](int i) { return i % 2 != 0; }) };
27
28 printVector("The numbers that were kept", odd_numbers);
29}
30

Callers

nothing calls this directly

Calls 1

printVectorFunction · 0.70

Tested by

no test coverage detected