Move non-ditto'd overload of swap() away from prospective ddoc unittests

This commit is contained in:
H. S. Teoh 2015-03-18 18:57:25 -07:00
parent eba63621c6
commit f496b75156

View file

@ -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 @safe unittest
{ {
debug(std_algorithm) scope(success) debug(std_algorithm) scope(success)
@ -2111,6 +2105,12 @@ unittest
swap(b1, b2); 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) void swapFront(R1, R2)(R1 r1, R2 r2)
if (isInputRange!R1 && isInputRange!R2) if (isInputRange!R1 && isInputRange!R2)
{ {