Algorithm: Sorting functions

Functions

template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Compare >
void sortTogether (RandomAccessIterator1 begin1, RandomAccessIterator1 end1, RandomAccessIterator2 begin2, RandomAccessIterator2 end2, Compare compare1)
 Sort the two ranges together, using the first for comparisons.
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 >
void sortTogether (RandomAccessIterator1 begin1, RandomAccessIterator1 end1, RandomAccessIterator2 begin2, RandomAccessIterator2 end2)
 Sort the two ranges together, using the first for comparisons.
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename RandomAccessIterator3 , typename Compare >
void sortTogether (RandomAccessIterator1 begin1, RandomAccessIterator1 end1, RandomAccessIterator2 begin2, RandomAccessIterator2 end2, RandomAccessIterator3 begin3, RandomAccessIterator3 end3, Compare compare1)
 Sort the three ranges together, using the first for comparisons.
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename RandomAccessIterator3 >
void sortTogether (RandomAccessIterator1 begin1, RandomAccessIterator1 end1, RandomAccessIterator2 begin2, RandomAccessIterator2 end2, RandomAccessIterator3 begin3, RandomAccessIterator3 end3)
 Sort the two ranges together, using the first for comparisons.
template<typename InputIterator , typename IntOutputIterator >
void computeOrder (InputIterator begin, InputIterator end, IntOutputIterator order)
 Compute the order for the elements.
template<typename RandomAccessIterator , typename IntInputIterator >
void orderByRank (RandomAccessIterator begin, RandomAccessIterator end, IntInputIterator ranks)
 Order the elements by rank.

Detailed Description


Function Documentation

template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename RandomAccessIterator3 , typename Compare >
void sortTogether ( RandomAccessIterator1  begin1,
RandomAccessIterator1  end1,
RandomAccessIterator2  begin2,
RandomAccessIterator2  end2,
RandomAccessIterator3  begin3,
RandomAccessIterator3  end3,
Compare  compare1 
) [inline]

Sort the three ranges together, using the first for comparisons.

Use Compare for comparing elements. This class must be specified explicitly.

template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Compare >
void sortTogether ( RandomAccessIterator1  begin1,
RandomAccessIterator1  end1,
RandomAccessIterator2  begin2,
RandomAccessIterator2  end2,
Compare  compare1 
) [inline]

Sort the two ranges together, using the first for comparisons.

Use Compare for comparing elements. This class must be specified explicitly.

Referenced by sortTogether().

Generated on Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3