| 83 | } |
| 84 | |
| 85 | int main() |
| 86 | { |
| 87 | auto is_even = [](int const n) { return n % 2 == 0; }; |
| 88 | |
| 89 | std::vector<int> n{2, 3, 5, 6, 7, 8, 9}; |
| 90 | auto v = n | rv::filter(is_even) | views::custom_take(2); |
| 91 | std::ranges::copy(v, |
| 92 | std::ostream_iterator<int>(std::cout, " ")); |
| 93 | } |
nothing calls this directly
no outgoing calls
no test coverage detected