Add default values for the parallel template parameter

This commit is contained in:
Mael Rouxel-Labbé 2024-01-31 16:36:24 +01:00
parent 7ac5b037a8
commit 22c8ae9169
1 changed files with 3 additions and 3 deletions

View File

@ -124,21 +124,21 @@ public:
} }
// iterates over all vertices `v`, calling `f(v)` on each of them // iterates over all vertices `v`, calling `f(v)` on each of them
template <typename ConcurrencyTag, typename Functor> template <typename ConcurrencyTag = CGAL::Sequential_tag, typename Functor>
void for_each_vertex(Functor& f) const void for_each_vertex(Functor& f) const
{ {
m_topo.for_each_vertex(f, ConcurrencyTag{}); m_topo.for_each_vertex(f, ConcurrencyTag{});
} }
// iterates over all edges `e`, calling `f(e)` on each of them // iterates over all edges `e`, calling `f(e)` on each of them
template <typename ConcurrencyTag, typename Functor> template <typename ConcurrencyTag = CGAL::Sequential_tag, typename Functor>
void for_each_edge(Functor& f) const void for_each_edge(Functor& f) const
{ {
m_topo.for_each_edge(f, ConcurrencyTag{}); m_topo.for_each_edge(f, ConcurrencyTag{});
} }
// iterates over all cells `c`, calling `f(c)` on each of them // iterates over all cells `c`, calling `f(c)` on each of them
template <typename ConcurrencyTag, typename Functor> template <typename ConcurrencyTag = CGAL::Sequential_tag, typename Functor>
void for_each_cell(Functor& f) const void for_each_cell(Functor& f) const
{ {
m_topo.for_each_cell(f, ConcurrencyTag{}); m_topo.for_each_cell(f, ConcurrencyTag{});