[#beman-optional-optional-06-swap]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-06.adoc[optional&lt;T&&gt;]::swap
:relfileprefix: ../../../
:mrdocs:

Swaps the contents of this optional with another&period;

== Synopsis

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
void
swap(xref:beman/optional/optional-06.adoc[optional]& rhs) noexcept;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| The value to swap with&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
