Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Applying a functor to CGAL iterator ranges.

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Applying a functor to CGAL iterator ranges.


Chronological Thread 
  • From: RossH <>
  • To:
  • Subject: [cgal-discuss] Re: Applying a functor to CGAL iterator ranges.
  • Date: Tue, 5 Feb 2013 13:34:03 -0800 (PST)

Cody M Rose wrote
> Depending on what you're iterating over it sounds like you could kludge
> this by creating a sequence filled with pointers to your actual
> iterators. It's certainly not elegant, though.
>
> Cody
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss

Yea, the nicest one-off solution is to use a boost::iterator_adaptor (I
actually posted the code for this exact
solution on my blog:
http://www.rosshemsley.co.uk/2012/08/boost-iterator_adaptors-and-modifying-the-cgal-finite_vertices_iterator/).

But here I am writing the functions to use as a library so I don't want the
user to see the inconsistency.



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Applying-a-functor-to-CGAL-iterator-ranges-tp4656663p4656669.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page