Is it possible to change the return value of std::vector<p2t::Triangle*> CDT::GetTriangles() ?
It receive a reference from sweepcontext->GetTriangles(); but it is converted into a copy of the vector that takes more time than if the vector returned by const reference.
Is it possible to change the return value of std::vector<p2t::Triangle*> CDT::GetTriangles() ?
It receive a reference from sweepcontext->GetTriangles(); but it is converted into a copy of the vector that takes more time than if the vector returned by const reference.
Same for std::list<p2t::Triangle*> CDT::GetMap()