58#ifndef __ADS_EngineeredQuickSorts
59 #define __ADS_EngineeredQuickSorts
121 class T = std::ranges::range_value_t< std::remove_cvref_t< Store > > ,
122 class C = std::less<> >
126template<
class T ,
class C = std::less<> >
168 class T = std::ranges::range_value_t< std::remove_cvref_t< Store > > ,
169 class C = std::less<> >
173template<
class T ,
class C = std::less<> >
185 requires requires( std::vector< std::ranges::range_value_t< R > > & v ,
192 const auto f = [ & ](
auto & v ) ->
decltype(
auto ) {
195 return( detail::sortRange( A , f ) );
202template< SortRange R ,
class... P >
203 requires requires( std::vector< std::ranges::range_value_t< R > > & v ,
210 const auto f = [ & ](
auto & v ) ->
decltype(
auto ) {
213 return( detail::sortRange( A , f ) );
224#include "ADS/sort/impl/EngineeredQuickSorts.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
Insertion Sort (section 2.7.2), as one sorts a hand of cards: is inserted in the sorted prefix ,...
The pattern-defeating quicksort, beyond the book and beyond the quicksorts of Ferragina's book,...
The checks of the contracts of the sorts [see Contract.h]: a copy of the input kept only when the aud...
a range that the sorts take beside std::vector and std::span: random access, sized,...
Definition Sorted.h:153
the storage on which the sorts work in place, by reference: a std::vector or a std::span of its items...
Definition Sorted.h:178
void dualPivotQuickSort(Store &&A, C less=C())
the dual-pivot quicksort
void threeWayQuickSort(Store &&A, C less=C())
the quicksort with the three-way partition of Ferragina's book