diff --git a/STL_Extension/include/CGAL/iterator.h b/STL_Extension/include/CGAL/iterator.h index b57386a42df..91e36739816 100644 --- a/STL_Extension/include/CGAL/iterator.h +++ b/STL_Extension/include/CGAL/iterator.h @@ -37,28 +37,28 @@ namespace CGAL { - template +template class Prevent_deref : public boost::iterator_adaptor< - Prevent_deref + Prevent_deref , I // base - , VT // value + , Value_type // value , boost::use_default - , VT // ref + , Value_type // ref > { public: typedef boost::iterator_adaptor< - Prevent_deref + Prevent_deref , I // base - , VT // value + , Value_type // value , boost::use_default - , VT // ref + , Value_type // ref > Base; typedef typename Base::reference reference; typedef typename std::pair range; - Prevent_deref() : Base() {} + Prevent_deref() = default; Prevent_deref(const I& i) : Base(i) {} private: friend class boost::iterator_core_access; @@ -67,11 +67,6 @@ private: } }; - - - - - template Iterator_range > make_prevent_deref_range(const Iterator_range& range) { diff --git a/TDS_2/include/CGAL/Triangulation_data_structure_2.h b/TDS_2/include/CGAL/Triangulation_data_structure_2.h index aff81d0302c..f7c386b9d3f 100644 --- a/TDS_2/include/CGAL/Triangulation_data_structure_2.h +++ b/TDS_2/include/CGAL/Triangulation_data_structure_2.h @@ -183,7 +183,7 @@ public: } Face_handles face_handles() const { - return { faces_begin(),faces_end() }; + return { faces_begin(), faces_end() }; } Vertex_iterator vertices_begin() const { @@ -195,7 +195,7 @@ public: } Vertex_handles vertex_handles() const { - return { vertices_begin(),vertices_end() }; + return { vertices_begin(), vertices_end() }; } Edge_iterator edges_begin() const { diff --git a/TDS_3/include/CGAL/Triangulation_data_structure_3.h b/TDS_3/include/CGAL/Triangulation_data_structure_3.h index 52369f95b1b..b9fbf0bf30e 100644 --- a/TDS_3/include/CGAL/Triangulation_data_structure_3.h +++ b/TDS_3/include/CGAL/Triangulation_data_structure_3.h @@ -661,7 +661,7 @@ public: Cell_handles cell_handles() const { - return {cells_begin(), cells_end()}; + return { cells_begin(), cells_end() }; } Cell_iterator raw_cells_begin() const @@ -720,7 +720,7 @@ public: Vertex_handles vertex_handles() const { - return {vertices_begin(), vertices_end()}; + return { vertices_begin(), vertices_end() }; } // CIRCULATOR METHODS diff --git a/Triangulation_2/include/CGAL/Regular_triangulation_2.h b/Triangulation_2/include/CGAL/Regular_triangulation_2.h index 30c869a97ab..6fd315e1490 100644 --- a/Triangulation_2/include/CGAL/Regular_triangulation_2.h +++ b/Triangulation_2/include/CGAL/Regular_triangulation_2.h @@ -182,7 +182,8 @@ public: operator Vertex_handle() const { return Base::base(); } }; - typedef Iterator_range > Finite_vertex_handles; + typedef Iterator_range > Finite_vertex_handles; class Hidden_vertices_iterator : public Filter_iterator @@ -199,7 +200,8 @@ public: operator Vertex_handle() const { return Base::base(); } }; - typedef Iterator_range > Hidden_vertex_handles; + typedef Iterator_range > Hidden_vertex_handles; //for backward compatibility typedef Finite_faces_iterator Face_iterator; @@ -2233,7 +2235,7 @@ typename Regular_triangulation_2::Finite_vertex_handles Regular_triangulation_2:: finite_vertex_handles() const { - return { finite_vertices_begin(),finite_vertices_end() }; + return { finite_vertices_begin(), finite_vertices_end() }; } template < class Gt, class Tds > @@ -2260,7 +2262,7 @@ typename Regular_triangulation_2::Hidden_vertex_handles Regular_triangulation_2:: hidden_vertex_handles() const { - return { hidden_vertices_begin(),hidden_vertices_end() }; + return { hidden_vertices_begin(), hidden_vertices_end() }; } template < class Gt, class Tds > diff --git a/Triangulation_2/include/CGAL/Triangulation_2.h b/Triangulation_2/include/CGAL/Triangulation_2.h index 4c905043bab..a9b1a3430c9 100644 --- a/Triangulation_2/include/CGAL/Triangulation_2.h +++ b/Triangulation_2/include/CGAL/Triangulation_2.h @@ -214,8 +214,10 @@ public: typedef typename Tds::Vertex_handles All_vertex_handles; typedef typename Tds::Edges All_edges; - typedef Iterator_range > Finite_face_handles; - typedef Iterator_range > Finite_vertex_handles; + typedef Iterator_range > Finite_face_handles; + typedef Iterator_range > Finite_vertex_handles; typedef Iterator_range Finite_edges; typedef Iterator_range Points; @@ -3267,7 +3269,7 @@ typename Triangulation_2::Finite_face_handles Triangulation_2:: finite_face_handles() const { - return { finite_faces_begin(),finite_faces_end() }; + return { finite_faces_begin(), finite_faces_end() }; } template @@ -3296,7 +3298,7 @@ typename Triangulation_2::Finite_vertex_handles Triangulation_2:: finite_vertex_handles() const { - return { finite_vertices_begin(),finite_vertices_end() }; + return { finite_vertices_begin(), finite_vertices_end() }; } template diff --git a/Triangulation_3/include/CGAL/Triangulation_3.h b/Triangulation_3/include/CGAL/Triangulation_3.h index f5b337ca11d..6e9e6417ed6 100644 --- a/Triangulation_3/include/CGAL/Triangulation_3.h +++ b/Triangulation_3/include/CGAL/Triangulation_3.h @@ -517,8 +517,10 @@ public: operator Vertex_handle() const { return Base::base(); } }; - typedef Iterator_range > Finite_cell_handles; - typedef Iterator_range > Finite_vertex_handles; + typedef Iterator_range > Finite_cell_handles; + typedef Iterator_range > Finite_vertex_handles; typedef Filter_iterator Finite_edges_iterator; typedef Filter_iterator Finite_facets_iterator; @@ -529,7 +531,8 @@ public: typedef Triangulation_segment_cell_iterator_3 Segment_cell_iterator; typedef Triangulation_segment_simplex_iterator_3 Segment_simplex_iterator; - typedef Iterator_range > Segment_traverser_cell_handles; + typedef Iterator_range > Segment_traverser_cell_handles; typedef Iterator_range Segment_traverser_simplices; private: @@ -1831,7 +1834,7 @@ public: Finite_vertex_handles finite_vertex_handles() const { - return { finite_vertices_begin(), finite_vertices_end()}; + return {finite_vertices_begin(), finite_vertices_end()}; } Vertex_iterator vertices_begin() const { return _tds.vertices_begin(); } @@ -2272,7 +2275,7 @@ public: const Point& pt, Cell_handle hint = Cell_handle()) const { - return { segment_traverser_cells_begin(ps, pt, hint), segment_traverser_cells_end()}; + return {segment_traverser_cells_begin(ps, pt, hint), segment_traverser_cells_end()}; } //// Segment Simplex Iterator