Subject: CGAL users discussion list
List archive
- From: Sylvain Pion <>
- To:
- Subject: Re: [cgal-discuss] BOOST_FOREACH.
- Date: Thu, 4 Jul 2013 18:22:31 -0700
Some work has been done, for example Triangulation_data_structure_3 has .vertices() (resp. .cells()) returning Vertex_range (resp. Cell_range). But it did not get extended to the Triangulation_3 level yet, apparently. Besides BOOST_FOREACH, the new for loop in C++11 would also benefit from this.
2013/7/4 Nico Kruithof <>
Yes, but that still is more typing. I was hoping that there were CGAL functions for that would do that for me. I'll just stick with the normal for loop. It's just syntactical sugar.Nico--On Thu, Jul 4, 2013 at 6:16 PM, Cody Rose <> wrote:
You could probably use a boost iterator range as an adaptor: http://www.boost.org/doc/libs/1_54_0/libs/range/doc/html/range/reference/utilities/iterator_range.html
Cody
On 7/4/2013 7:53 AM, Nico Kruithof wrote:
Hi,
I like BOOST_FOREACH but as I far as know, it needs a container and not a range. What would be the most convenient way to use it with the vertices of a triangulation where you only have the ..._begin() and ..._end() members?
--
Nico Kruithof
Nico Kruithof
- [cgal-discuss] BOOST_FOREACH., Nico Kruithof, 07/04/2013
- Re: [cgal-discuss] BOOST_FOREACH., Cody Rose, 07/04/2013
- Re: [cgal-discuss] BOOST_FOREACH., Nico Kruithof, 07/05/2013
- Re: [cgal-discuss] BOOST_FOREACH., Sylvain Pion, 07/05/2013
- Re: [cgal-discuss] BOOST_FOREACH., Nico Kruithof, 07/05/2013
- Re: [cgal-discuss] BOOST_FOREACH., Sylvain Pion, 07/05/2013
- Re: [cgal-discuss] BOOST_FOREACH., Nico Kruithof, 07/05/2013
- Re: [cgal-discuss] BOOST_FOREACH., Cody Rose, 07/04/2013
Archive powered by MHonArc 2.6.18.