| 275 | |
| 276 | template <typename Fn> |
| 277 | void ForEachTree(Fn && fn) const |
| 278 | { |
| 279 | base::ControlFlowWrapper<Fn> wrapper(std::forward<Fn>(fn)); |
| 280 | for (auto const & tree : m_trees) |
| 281 | if (wrapper(tree) == base::ControlFlow::Break) |
| 282 | return; |
| 283 | } |
| 284 | |
| 285 | private: |
| 286 | types::Ptrs<Data> m_trees; |