diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index 47232cbabd5..2eb7f0aeb2c 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -2802,6 +2803,37 @@ namespace internal{ } } +namespace internal { + +template +std::size_t +exact_num_faces(const CGAL::Surface_mesh

& sm) +{ + return sm.number_of_faces(); +} + +template +std::size_t +exact_num_edges(const CGAL::Surface_mesh

& sm) +{ + return sm.number_of_edges(); +} + +template +std::size_t +exact_num_halfedges(const CGAL::Surface_mesh

& sm) +{ + return sm.number_of_halfedges(); +} + +template +std::size_t +exact_num_vertices(const CGAL::Surface_mesh

& sm) +{ + return sm.number_of_vertices(); +} + +} // namespace internal } // namespace CGAL #ifndef DOXYGEN_RUNNING