[#prevector-0c-swap]
= xref:prevector-0c.adoc[prevector]::swap
:relfileprefix: ../
:mrdocs:

Exchanges the contents of this container with `other`&period;

== Synopsis

Declared in `&lt;prevector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:prevector-0c.adoc[prevector&lt;N, T, Size, Diff&gt;]& other) noexcept;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The container to swap contents with&period;
|===


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