| 95 | |
| 96 | template <class ToDo> |
| 97 | bool ForAnyPoint(ToDo && toDo) const |
| 98 | { |
| 99 | if (IsPoint()) |
| 100 | return toDo(m_center); |
| 101 | |
| 102 | for (auto const & points : m_polygons) |
| 103 | if (base::AnyOf(points, std::forward<ToDo>(toDo))) |
| 104 | return true; |
| 105 | |
| 106 | return false; |
| 107 | } |
| 108 | |
| 109 | template <class ToDo> |
| 110 | void ForEachPolygon(ToDo && toDo) const |