Boost logo

Geometry :

Subject: [ggl] union_inserter with ring output
From: Lee (lee)
Date: 2009-11-27 19:11:48


Hello list,

In the case of 'ring + ring -> ring' with union_inserter is there a
guarantee that no less and no more than one result object will be output?

Such that the following code is always safe:

void unite(my_ring const& r1, my_ring const& r2, my_ring& result)
{
    std::vector<my_ring> v;
    ggl::union_inserter<my_ring>(r1, r2, std::back_inserter(v));
    v[0].swap(result);
}


Geometry list run by mateusz at loskot.net