| 73 | } |
| 74 | |
| 75 | std::optional<Value> Next() override |
| 76 | { |
| 77 | if (m_It == m_End) { |
| 78 | return std::nullopt; |
| 79 | } |
| 80 | |
| 81 | auto next = m_Func(*m_It); |
| 82 | ++m_It; |
| 83 | return next; |
| 84 | } |
| 85 | |
| 86 | private: |
| 87 | using Iterator = typename Container::iterator; |
no outgoing calls
no test coverage detected