Add Params: to swap().

This commit is contained in:
H. S. Teoh 2015-01-07 16:43:39 -08:00
parent 976cefb5a7
commit 24da829897

View file

@ -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
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
if (isBlitAssignable!T && !is(typeof(lhs.proxySwap(rhs))))