mirror of
https://github.com/dlang/phobos.git
synced 2025-05-05 01:20:40 +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;
|
module std.algorithm.sorting;
|
||||||
|
|
||||||
|
import std.typecons : Flag;
|
||||||
import std.algorithm.mutation : SwapStrategy;
|
import std.algorithm.mutation : SwapStrategy;
|
||||||
import std.functional; // : unaryFun, binaryFun;
|
import std.functional; // : unaryFun, binaryFun;
|
||||||
import std.range.primitives;
|
import std.range.primitives;
|
||||||
|
@ -80,12 +81,12 @@ import std.meta; // : allSatisfy;
|
||||||
/**
|
/**
|
||||||
Specifies whether the output of certain algorithm is desired in sorted
|
Specifies whether the output of certain algorithm is desired in sorted
|
||||||
format.
|
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
|
alias SortOutput = Flag!"sortOutput";
|
||||||
{
|
|
||||||
no, /// Don't sort output
|
|
||||||
yes, /// Sort output
|
|
||||||
}
|
|
||||||
|
|
||||||
// completeSort
|
// completeSort
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue