Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Cell_handle and cell_iterator

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Cell_handle and cell_iterator


Chronological Thread 
  • From: Cedric Doucet <>
  • To:
  • Subject: Re: [cgal-discuss] Cell_handle and cell_iterator
  • Date: Wed, 7 May 2014 13:32:29 +0200 (CEST)


Thank you for your answer Olivier!

Indeed, I finally chose this solution and replace int by std::pair<int,int> in the template parameter corresponding to info.
Fortunately, this does not lead to too many modifications in the code.
But it could be.

Therefore, I am still interested in having answers to my two questions.

Best,

Cédric



De: "Olivier Devillers" <>
À:
Envoyé: Mercredi 7 Mai 2014 13:25:33
Objet: Re: [cgal-discuss] Cell_handle and cell_iterator

Le 5/7/14 1:11 PM, cdoucet a écrit :
Hello,

in a C++ code which uses CGAL, there is a loop like the following:

----------------------------------
for ( std::vector<Cell_handle>::iterator iter = cells.begin(); iter!
=cells.end(); ++iter)
  (*iter)->info() +=2;
----------------------------------

I need to store more than one integer in iter.


the type info is refering to is a template type, you can choose any type you want.


--
Olivier Devillers, chercheur à

Attachment: LogoLinria-blue.png
Description: PNG image




Archive powered by MHonArc 2.6.18.

Top of Page