Merge pull request #2996 from quickfur/std_algo_cleanup

std.algorithm cleanup
This commit is contained in:
Andrei Alexandrescu 2015-02-16 16:50:14 -08:00
commit 5dd6df0bd3
6 changed files with 116 additions and 123 deletions

View file

@ -61,7 +61,6 @@ T2=$(TR $(TDNW $(LREF $1)) $(TD $+))
*/
module std.algorithm.sorting;
import std.algorithm : SortOutput; // FIXME
import std.algorithm.mutation : SwapStrategy;
import std.functional; // : unaryFun, binaryFun;
import std.range.primitives;
@ -69,6 +68,16 @@ import std.range.primitives;
import std.range; // : SortedRange;
import std.traits;
/**
Specifies whether the output of certain algorithm is desired in sorted
format.
*/
enum SortOutput
{
no, /// Don't sort output
yes, /// Sort output
}
// completeSort
/**
Sorts the random-access range $(D chain(lhs, rhs)) according to