Function

CGAL::do_curves_intersect

#include <CGAL/Sweep_line_2_algorithms.h>

template <class InputIterator, class Traits>
bool
do_curves_intersect ( InputIterator curves_begin,
InputIterator curves_end,
Traits traits = Default_traits())
given a range of curves, check whether there is at least one pair of curves that intersect in their interior. The function returns true if such a pair is found, and false if all curves are pairwise disjoint in their interior.The Traits type must be a model of the ArrangementTraits_2 concept, such that the value-type of InputIterator is Traits::Curve_2.