Fix Issue 8087 - Improve clarity of std.algorithm documentation

This commit is contained in:
Alexandru Razvan Caciulescu 2016-10-31 08:17:06 +02:00
parent 31dad0c099
commit 946a46774c
3 changed files with 39 additions and 39 deletions

View file

@ -111,8 +111,8 @@ Params:
sorted.
*/
void completeSort(alias less = "a < b", SwapStrategy ss = SwapStrategy.unstable,
Range1, Range2)(SortedRange!(Range1, less) lhs, Range2 rhs)
if (hasLength!(Range2) && hasSlicing!(Range2))
RandomAccessRange1, RandomAccessRange2)(SortedRange!(RandomAccessRange1, less) lhs, RandomAccessRange2 rhs)
if (hasLength!(RandomAccessRange2) && hasSlicing!(RandomAccessRange2))
{
import std.algorithm.mutation : bringToFront;
import std.range : chain, assumeSorted;