Function Subspace :: sus :: mem :: swap

template <class T>
auto swap(T& lhs, T& rhs) -> void
requires
sus::mem::Move<T>
!std::is_const_v<T>

Swaps the objects lhs and rhs.

If both inputs point to the same object, no swap takes place, so no move constructor/operator is called.