Program Listing for File StrandSort.h

↰ Return to documentation for file (ADS/sort/StrandSort.h)

/*--------------------------------------------------------------------------*/
/*--------------------------- File StrandSort.h ----------------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*----------------------------- DEFINITIONS --------------------------------*/
/*--------------------------------------------------------------------------*/

#ifndef __ADS_StrandSort
 #define __ADS_StrandSort
                      /* self-identification: #endif constant */

/*--------------------------------------------------------------------------*/
/*------------------------------ INCLUDES ----------------------------------*/
/*--------------------------------------------------------------------------*/

#include "ADS/Contract.h"
#include "ADS/sequence/List.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 strandSort( List< T > & L , C less = C() ,
                 std::size_t * strands = nullptr );

/*--------------------------------------------------------------------------*/

}  // end( namespace ADS )

/*--------------------------------------------------------------------------*/
/*-------------------------- IMPLEMENTATION --------------------------------*/
/*--------------------------------------------------------------------------*/

#include "ADS/sort/impl/StrandSort.tpp"

/*--------------------------------------------------------------------------*/

#endif  /* StrandSort.h included */

/*--------------------------------------------------------------------------*/
/*------------------------- End File StrandSort.h --------------------------*/
/*--------------------------------------------------------------------------*/