| 16 | } |
| 17 | |
| 18 | int 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 |
nothing calls this directly
no test coverage detected