beman::optional::optional<T&>::swap

Swaps the contents of this optional with another.

Synopsis

Declared in <beman/optional/optional.hpp>

constexpr
void
swap(optional& rhs) noexcept;

Parameters

NameDescription
rhsThe value to swap with.