From cf5e7f0691023133f5abb2fb5d44a1f84998c2da Mon Sep 17 00:00:00 2001 From: Iordan Iordanov Date: Thu, 27 Dec 2018 21:12:59 +0100 Subject: [PATCH] Added 'remove' function with iterator input --- .../Periodic_4_hyperbolic_Delaunay_triangulation_2.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Periodic_4_hyperbolic_triangulation_2/include/CGAL/Periodic_4_hyperbolic_Delaunay_triangulation_2.h b/Periodic_4_hyperbolic_triangulation_2/include/CGAL/Periodic_4_hyperbolic_Delaunay_triangulation_2.h index 6918664139c..ee9c935917d 100644 --- a/Periodic_4_hyperbolic_triangulation_2/include/CGAL/Periodic_4_hyperbolic_Delaunay_triangulation_2.h +++ b/Periodic_4_hyperbolic_triangulation_2/include/CGAL/Periodic_4_hyperbolic_Delaunay_triangulation_2.h @@ -291,6 +291,15 @@ public: bool remove(Vertex_handle v); + template + void remove(VertexRemoveIterator first, VertexRemoveIterator last) + { + for (VertexRemoveIterator vit = first; vit != last; ++vit) + { + remove(*vit); + } + } + bool is_dummy_vertex(Vertex_handle vh) const { for(std::size_t i=0; i