View source code
Display the source code in std/uuid.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Function std.uuid.UUID.swap
Swap the data
of this UUID
with the data
of rhs
.
Prototype
void swap( UUID rhs ) pure nothrow @nogc @safe;
Example
immutable ubyte[16] data = [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]; UUID u1; UUID u2 = UUID(data); u1.swap(u2); assert(u1 == UUID(data)); assert(u2 == UUID.init);
Authors
Johannes Pfau