[#BloombergLP-bslstl-variant_swapImpl-0a2]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::variant&lowbar;swapImpl
:relfileprefix: ../../
:mrdocs:

`variant&lowbar;swapImpl` overloads

== Synopses

Declared in `&lt;bslstl&lowbar;variant&period;h&gt;`

Swap `lhs` and `rhs` when `t&lowbar;VARIANT` is not allocator&hyphen;aware&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;VARIANT&gt;
void
xref:BloombergLP/bslstl/variant_swapImpl-0a9.adoc[variant&lowbar;swapImpl](
    xref:bsl/false_type.adoc[bsl::false&lowbar;type] usesAllocator,
    t&lowbar;VARIANT& lhs,
    t&lowbar;VARIANT& rhs);
----

[.small]#xref:BloombergLP/bslstl/variant_swapImpl-0a9.adoc[_» more&period;&period;&period;_]#

Swap `lhs` and `rhs` when `t&lowbar;VARIANT` is allocator&hyphen;aware&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;VARIANT&gt;
void
xref:BloombergLP/bslstl/variant_swapImpl-0b.adoc[variant&lowbar;swapImpl](
    xref:bsl/true_type.adoc[bsl::true&lowbar;type] usesAllocator,
    t&lowbar;VARIANT& lhs,
    t&lowbar;VARIANT& rhs);
----

[.small]#xref:BloombergLP/bslstl/variant_swapImpl-0b.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *usesAllocator*
| tag indicating `t&lowbar;VARIANT` is not allocator&hyphen;aware
| *lhs*
| first variant to swap
| *rhs*
| second variant to swap
|===


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