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

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;

== Synopsis

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

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


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