mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Move non-ditto'd overload of swap() away from prospective ddoc unittests
This commit is contained in:
parent
eba63621c6
commit
f496b75156
1 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue