Subject: CGAL users discussion list
List archive
- From: Laurent Rineau <>
- To:
- Subject: Re: [cgal-discuss] Convex Hulls and Output Iterators
- Date: Sun, 30 Dec 2007 19:23:03 +0100
- Organization: Inria, Sophia Antipolis, FRANCE
On Sunday 30 December 2007 18:24:52
wrote:
> Hi all,
>
> I need to store the output of ch_graham_andrew in an output iterator other
> than an ostream_iterator. What other types of output iterators can I use.
You can output to a container, such as a std::vector<Point_2>, for example.
std::vector<Point_2> output_result;
Then you can use "std::back_inserter(output_result)" as an output iterator.
See for example the following site for a documentation:
http://www.sgi.com/tech/stl/back_insert_iterator.html
--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Tel: +33 4 92 38 78 62 (Fax: +33.4.97.15.53.95)
- Convex Hulls and Output Iterators, bogiwetamtam, 12/30/2007
- Re: [cgal-discuss] Convex Hulls and Output Iterators, Laurent Rineau, 12/30/2007
- Re: [cgal-discuss] Convex Hulls and Output Iterators, Tamtam wobogi, 12/30/2007
- Re: [cgal-discuss] Convex Hulls and Output Iterators, Laurent Rineau, 12/30/2007
Archive powered by MHonArc 2.6.16.