mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 15:40:36 +03:00
Change yes/no enum SortOutput to a Flag
This commit is contained in:
parent
004bc507df
commit
669fa67b1d
1 changed files with 6 additions and 5 deletions
|
@ -69,6 +69,7 @@ T2=$(TR $(TDNW $(LREF $1)) $(TD $+))
|
|||
*/
|
||||
module std.algorithm.sorting;
|
||||
|
||||
import std.typecons : Flag;
|
||||
import std.algorithm.mutation : SwapStrategy;
|
||||
import std.functional; // : unaryFun, binaryFun;
|
||||
import std.range.primitives;
|
||||
|
@ -80,12 +81,12 @@ import std.meta; // : allSatisfy;
|
|||
/**
|
||||
Specifies whether the output of certain algorithm is desired in sorted
|
||||
format.
|
||||
|
||||
If set to $(D SortOutput.no), the output should not be sorted.
|
||||
|
||||
Otherwise if set to $(D SortOutput.yes), the output should be sorted.
|
||||
*/
|
||||
enum SortOutput
|
||||
{
|
||||
no, /// Don't sort output
|
||||
yes, /// Sort output
|
||||
}
|
||||
alias SortOutput = Flag!"sortOutput";
|
||||
|
||||
// completeSort
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue