[#BloombergLP-bslalg-swap]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::swap
:relfileprefix: ../../
:mrdocs:

Efficiently exchange the values of two `HashTableAnchor` objects&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;hashtableanchor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(
    xref:BloombergLP/bslalg/HashTableAnchor.adoc[HashTableAnchor]& a,
    xref:BloombergLP/bslalg/HashTableAnchor.adoc[HashTableAnchor]& b);
----

== Description

Efficiently exchange the values of the specified `a` and `b` objects&period; This function provides the no&hyphen;throw exception&hyphen;safety guarantee&period; The behavior is undefined unless the two objects were created with the same allocator&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| first object to exchange
| *b*
| second object to exchange
|===


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