[#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;`

This component&hyphen;private function swaps the values of the specified `lhs` and `rhs` when the type (template parameter) `t&lowbar;VARIANT` is a non&hyphen;allocator&hyphen;aware variant&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],
    t&lowbar;VARIANT& lhs,
    t&lowbar;VARIANT& rhs);
----

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

This component&hyphen;private function swaps the values of the specified `lhs` and `rhs` when the type (template parameter) `t&lowbar;VARIANT` is an allocator&hyphen;aware variant&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],
    t&lowbar;VARIANT& lhs,
    t&lowbar;VARIANT& rhs);
----

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


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