| 494 | explicit Impl(Fn filter, Iterator<From> it) : filter_(filter), it_(std::move(it)) {} |
| 495 | |
| 496 | Result<To> Next() { |
| 497 | To out = IterationTraits<To>::End(); |
| 498 | Action action; |
| 499 | |
| 500 | for (;;) { |
| 501 | ARROW_ASSIGN_OR_RAISE(From i, it_.Next()); |
| 502 | |
| 503 | if (IsIterationEnd(i)) { |
| 504 | return IterationTraits<To>::End(); |
| 505 | } |
| 506 | |
| 507 | ARROW_ASSIGN_OR_RAISE(std::tie(out, action), filter_(std::move(i))); |
| 508 | |
| 509 | if (action == ACCEPT) return out; |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | private: |
| 514 | Fn filter_; |
nothing calls this directly
no test coverage detected