Skip to content

Commit

Permalink
Move non-ditto'd overload of swap() away from prospective ddoc unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
H. S. Teoh committed Mar 19, 2015
1 parent eba6362 commit f496b75
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions std/algorithm/mutation.d
Expand Up @@ -1951,12 +1951,6 @@ if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))
}
}

// Not yet documented
void swap(T)(ref T lhs, ref T rhs) if (is(typeof(lhs.proxySwap(rhs))))
{
lhs.proxySwap(rhs);
}

@safe unittest
{
debug(std_algorithm) scope(success)
Expand Down Expand Up @@ -2111,6 +2105,12 @@ unittest
swap(b1, b2);
}

// Not yet documented
void swap(T)(ref T lhs, ref T rhs) if (is(typeof(lhs.proxySwap(rhs))))
{
lhs.proxySwap(rhs);
}

void swapFront(R1, R2)(R1 r1, R2 r2)
if (isInputRange!R1 && isInputRange!R2)
{
Expand Down

0 comments on commit f496b75

Please sign in to comment.