Program Listing for File RunSorts.h
↰ Return to documentation for file (ADS/sort/RunSorts.h)
/*--------------------------------------------------------------------------*/
/*---------------------------- File RunSorts.h -----------------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*----------------------------- DEFINITIONS --------------------------------*/
/*--------------------------------------------------------------------------*/
#ifndef __ADS_RunSorts
#define __ADS_RunSorts
/* self-identification: #endif constant */
/*--------------------------------------------------------------------------*/
/*------------------------------ INCLUDES ----------------------------------*/
/*--------------------------------------------------------------------------*/
#include "ADS/Contract.h"
#include "ADS/sort/Sorted.h"
#include <algorithm>
#include <cstddef>
#include <functional>
#include <iterator>
#include <type_traits>
#include <utility>
#include <vector>
/*--------------------------------------------------------------------------*/
/*--------------------------- NAMESPACE ------------------------------------*/
/*--------------------------------------------------------------------------*/
namespace ADS {
template< class T , class C = std::less<> >
void timSort( std::vector< T > & A , C less = C() ,
std::size_t * runs = nullptr );
template< class T , class C = std::less<> >
void powerSort( std::vector< T > & A , C less = C() ,
std::size_t * runs = nullptr );
/*--------------------------------------------------------------------------*/
} // end( namespace ADS )
/*--------------------------------------------------------------------------*/
/*-------------------------- IMPLEMENTATION --------------------------------*/
/*--------------------------------------------------------------------------*/
#include "ADS/sort/impl/RunSorts.tpp"
/*--------------------------------------------------------------------------*/
#endif /* RunSorts.h included */
/*--------------------------------------------------------------------------*/
/*-------------------------- End File RunSorts.h ---------------------------*/
/*--------------------------------------------------------------------------*/