ΒΆtemplate <class T>
inline constexpr void swap(T& lhs,
                           T& rhs) noexcept

Description

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.

Declared at: sus/mem/swap.h:36

Templates

T

Parameters

T& lhs
T& rhs