CGAL 5.5.3 - Spatial Sorting
CGAL::Multiscale_sort< Sort > Class Template Reference

#include <CGAL/Multiscale_sort.h>

Definition

The class Multiscale_sort represents a sorting algorithm adaptor.

Given a range of n points:

  1. it applies Sort on the last (1 - ratio) * n points,
  2. it recurses on the first ratio * n points, stopping when there are fewer than threshold points.

Creation

 Multiscale_sort (const Sort &sort=Sort(), std::ptrdiff_t threshold=1, double ratio=0.5)
 constructs an instance with traits as traits class instance.
 

Operations

template<class InputIterator >
void operator() (InputIterator begin, InputIterator end) const
 sorts the range [begin, end). More...
 

Member Function Documentation

◆ operator()()

template<typename Sort >
template<class InputIterator >
void CGAL::Multiscale_sort< Sort >::operator() ( InputIterator  begin,
InputIterator  end 
) const

sorts the range [begin, end).

Sort::operator()(InputIterator begin, InputIterator end) must be defined.