swap
namespace opentl {
template <typename T>
requires opentl::is_move_constructible_v<T> && opentl::is_move_assignable_v<T>
constexpr void swap(T& a, T& b) noexcept;
}
Swaps the values of two objects.
Template Parameters
| Name | Description |
|---|---|
T |
The type of the objects. |
Parameters
| Name | Description |
|---|---|
a |
The first object. |
b |
The second object. |