Function FlatMap.heapSwap

Swaps the contents of this and rhs only if both are heap allocated.

bool heapSwap (
  scope ref typeof(this) rhs
) scope;

Return true if swap successed or false if not (this or rhs is non heap allocated).

More

btl.vector.Vector.heapSwap