nu_swap

Swaps around 2 values of the same type.

The swap will be performed either by using move constructors, or by direct memory blitting, bypassing copy construction.

void
nu_swap
(
T
)
(
ref T a
,
ref T b
)

Parameters

a T

First item to swap

b T

Second item to swap.

Meta