ADS
Algorithms and Data Structures
Toggle main menu visibility
Loading...
Searching...
No Matches
StrandSort.h
Go to the documentation of this file.
1
/*--------------------------------------------------------------------------*/
2
/*--------------------------- File StrandSort.h ----------------------------*/
3
/*--------------------------------------------------------------------------*/
26
/*--------------------------------------------------------------------------*/
27
/*----------------------------- DEFINITIONS --------------------------------*/
28
/*--------------------------------------------------------------------------*/
29
30
#ifndef __ADS_StrandSort
31
#define __ADS_StrandSort
32
/* self-identification: #endif constant */
33
34
/*--------------------------------------------------------------------------*/
35
/*------------------------------ INCLUDES ----------------------------------*/
36
/*--------------------------------------------------------------------------*/
37
38
#include "
ADS/Contract.h
"
39
#include "
ADS/sequence/List.h
"
40
#include "
ADS/sort/Sorted.h
"
41
42
#include <algorithm>
43
#include <cstddef>
44
#include <functional>
45
#include <utility>
46
#include <vector>
47
48
/*--------------------------------------------------------------------------*/
49
/*--------------------------- NAMESPACE ------------------------------------*/
50
/*--------------------------------------------------------------------------*/
51
52
namespace
ADS
53
{
54
75
template
<
class
T ,
class
C = std::less<> >
76
void
strandSort
(
List< T >
& L , C less = C() ,
77
std::size_t * strands =
nullptr
);
78
79
/*--------------------------------------------------------------------------*/
80
81
}
// end( namespace ADS )
82
83
/*--------------------------------------------------------------------------*/
84
/*-------------------------- IMPLEMENTATION --------------------------------*/
85
/*--------------------------------------------------------------------------*/
86
87
#include "ADS/sort/impl/StrandSort.tpp"
88
89
/*--------------------------------------------------------------------------*/
90
91
#endif
/* StrandSort.h included */
92
93
/*--------------------------------------------------------------------------*/
94
/*------------------------- End File StrandSort.h --------------------------*/
95
/*--------------------------------------------------------------------------*/
Contract.h
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
List.h
The LIST of the book: a SEQUENCE [see ADT.h] realized as a bidirectional circular list of cells with ...
Sorted.h
The checks of the contracts of the sorts [see Contract.h]: a copy of the input kept only when the aud...
ADS::List
a SEQUENCE realized as a bidirectional circular list with a sentinel, its cells from a pool if Pooled
Definition
List.h:118
ADS::strandSort
void strandSort(List< T > &L, C less=C(), std::size_t *strands=nullptr)
the strand sort of a list; the number of strands goes to *strands, if given
ADS
Definition
ADT.h:96
ADS
sort
StrandSort.h
Generated by
1.17.0