The OpenD Programming Language

UUID.swap

Swap the data of this UUID with the data of rhs.

struct UUID
@safe pure nothrow @nogc
void
swap
(
ref UUID rhs
)

Examples

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);

Meta