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