| 91 | } |
| 92 | |
| 93 | int main() |
| 94 | { |
| 95 | auto is_even = [](int const n) { return n % 2 == 0; }; |
| 96 | |
| 97 | const std::vector<int> n{2, 3, 5, 6, 7, 8, 9}; |
| 98 | auto v = n | rv::filter(is_even) | views::custom_take(2); |
| 99 | std::ranges::copy(v, |
| 100 | std::ostream_iterator<int>(std::cout, " ")); |
| 101 | } |
nothing calls this directly
no outgoing calls
no test coverage detected