Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function stable_sort

boost::compute::stable_sort

Synopsis

// In header: <boost/compute/algorithm/stable_sort.hpp>


template<typename Iterator, typename Compare> 
  void stable_sort(Iterator first, Iterator last, Compare compare, 
                   command_queue & queue = system::default_queue());
template<typename Iterator> 
  void stable_sort(Iterator first, Iterator last, 
                   command_queue & queue = system::default_queue());

Description

Sorts the values in the range [first, last) according to compare. The relative order of identical values is preserved.

Space complexity: (n)

See Also:

sort(), is_sorted()


PrevUpHomeNext