diff --git a/Triangulation_2/doc/Triangulation_2/CGAL/Triangulation_2.h b/Triangulation_2/doc/Triangulation_2/CGAL/Triangulation_2.h index cea51b10905..4892b65eea3 100644 --- a/Triangulation_2/doc/Triangulation_2/CGAL/Triangulation_2.h +++ b/Triangulation_2/doc/Triangulation_2/CGAL/Triangulation_2.h @@ -691,17 +691,19 @@ Equivalent to `insert(p)`. Vertex_handle push_back(const Point& p); /*! -Inserts the points in the range `[first,last)` in the given order. -Returns the number of inserted points. -\pre The `value_type` of `InputIterator` is `Point`. +Inserts the points in the range `[first,last)` in the given order, +and returns the number of inserted points. + +\tparam PointInputIterator must be an input iterator with value type `Point`. */ -template < class InputIterator > +template < class PointInputIterator > std::ptrdiff_t -insert(InputIterator first, InputIterator last); +insert(PointInputIterator first, PointInputIterator last); /*! -inserts the points in the iterator range `[first,last)` in the given order. Returns the number of inserted points. +inserts the points in the iterator range `[first,last)` in the given order, +and returns the number of inserted points. Given a pair `(p,i)`, the vertex `v` storing `p` also stores `i`, that is `v.point() == p` and `v.info() == i`. If several pairs have the same point, diff --git a/Triangulation_3/doc/Triangulation_3/CGAL/Triangulation_3.h b/Triangulation_3/doc/Triangulation_3/CGAL/Triangulation_3.h index 3fa3a362201..3629e39b9ce 100644 --- a/Triangulation_3/doc/Triangulation_3/CGAL/Triangulation_3.h +++ b/Triangulation_3/doc/Triangulation_3/CGAL/Triangulation_3.h @@ -905,10 +905,9 @@ Vertex_handle insert(const Point & p, Locate_type lt, Cell_handle loc, int li, int lj); /*! -Inserts the points in the range `[first,last)`. Returns the number of inserted points. -Note that this function is not guaranteed to insert the points -following the order of `InputIterator`. -\tparam PointInputIterator must be an input iterator with value type `Point`. +Inserts the points in the range `[first,last)` in the given order, +and returns the number of inserted points. + */ template < class PointInputIterator > std::ptrdiff_t @@ -916,9 +915,8 @@ insert(PointInputIterator first, PointInputIterator last); /*! -Inserts the points in the iterator range `[first,last)`. -Returns the number of inserted points. -Inserts the points following the order of `PointWithInfoInputIterator`. +Inserts the points in the iterator range `[first,last)` in the given order, +and returns the number of inserted points. Given a pair `(p,i)`, the vertex `v` storing `p` also stores `i`, that is `v.point() == p` and `v.info() == i`. If several pairs have the same point,