mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Add Params: to swap().
This commit is contained in:
parent
976cefb5a7
commit
24da829897
1 changed files with 4 additions and 0 deletions
|
@ -2658,6 +2658,10 @@ If $(D lhs) and $(D rhs) reference the same instance, then nothing is done.
|
||||||
|
|
||||||
$(D lhs) and $(D rhs) must be mutable. If $(D T) is a struct or union, then
|
$(D lhs) and $(D rhs) must be mutable. If $(D T) is a struct or union, then
|
||||||
its fields must also all be (recursively) mutable.
|
its fields must also all be (recursively) mutable.
|
||||||
|
|
||||||
|
Params:
|
||||||
|
lhs = Data to be swapped with $(D rhs).
|
||||||
|
rhs = Data to be swapped with $(D lhs).
|
||||||
*/
|
*/
|
||||||
void swap(T)(ref T lhs, ref T rhs) @trusted pure nothrow
|
void swap(T)(ref T lhs, ref T rhs) @trusted pure nothrow
|
||||||
if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))
|
if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue