Program Listing for File TreeSort.h

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

/*--------------------------------------------------------------------------*/
/*---------------------------- File TreeSort.h -----------------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*----------------------------- DEFINITIONS --------------------------------*/
/*--------------------------------------------------------------------------*/

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

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

#include "ADS/Contract.h"
#include "ADS/sort/Sorted.h"
#include "ADS/tree/SearchTree.h"

#include <algorithm>
#include <concepts>
#include <cstddef>
#include <functional>
#include <utility>
#include <vector>

/*--------------------------------------------------------------------------*/
/*--------------------------- NAMESPACE ------------------------------------*/
/*--------------------------------------------------------------------------*/

namespace ADS {

template< std::totally_ordered T >
void treeSort( std::vector< T > & A , bool balanced = true );

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

}  // end( namespace ADS )

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

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

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

#endif  /* TreeSort.h included */

/*--------------------------------------------------------------------------*/
/*-------------------------- End File TreeSort.h ---------------------------*/
/*--------------------------------------------------------------------------*/