Program Listing for File EngineeredQuickSorts.h
↰ Return to documentation for file (ADS/sort/EngineeredQuickSorts.h)
/*--------------------------------------------------------------------------*/
/*---------------------- File EngineeredQuickSorts.h -----------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*----------------------------- DEFINITIONS --------------------------------*/
/*--------------------------------------------------------------------------*/
#ifndef __ADS_EngineeredQuickSorts
#define __ADS_EngineeredQuickSorts
/* self-identification: #endif constant */
/*--------------------------------------------------------------------------*/
/*------------------------------ INCLUDES ----------------------------------*/
/*--------------------------------------------------------------------------*/
#include "ADS/Contract.h"
#include "ADS/sort/InsertionSort.h"
#include "ADS/sort/Sorted.h"
#include <algorithm>
#include <bit>
#include <cstddef>
#include <functional>
#include <type_traits>
#include <utility>
#include <vector>
/*--------------------------------------------------------------------------*/
/*--------------------------- NAMESPACE ------------------------------------*/
/*--------------------------------------------------------------------------*/
namespace ADS {
template< class T , class C = std::less<> >
void introSort( std::vector< T > & A , C less = C() );
template< class T , class C = std::less<> >
void pdqSort( std::vector< T > & A , C less = C() );
template< class T , class C = std::less<> >
void dualPivotQuickSort( std::vector< T > & A , C less = C() );
template< class T , class C = std::less<> >
void threeWayQuickSort( std::vector< T > & A , C less = C() );
/*--------------------------------------------------------------------------*/
} // end( namespace ADS )
/*--------------------------------------------------------------------------*/
/*-------------------------- IMPLEMENTATION --------------------------------*/
/*--------------------------------------------------------------------------*/
#include "ADS/sort/impl/EngineeredQuickSorts.tpp"
/*--------------------------------------------------------------------------*/
#endif /* EngineeredQuickSorts.h included */
/*--------------------------------------------------------------------------*/
/*-------------------- End File EngineeredQuickSorts.h ---------------------*/
/*--------------------------------------------------------------------------*/