[#absl-swap-0f9]
= xref:absl.adoc[absl]::swap
:relfileprefix: ../
:mrdocs:

swap()

== Synopsis

Declared in `&lt;absl&sol;functional&sol;any&lowbar;invocable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(
    xref:absl/AnyInvocable.adoc[AnyInvocable]& f1,
    xref:absl/AnyInvocable.adoc[AnyInvocable]& f2) noexcept;
----

== Description

Exchanges the targets of `f1` and `f2`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *f1*
| The first `AnyInvocable` to swap&period;
| *f2*
| The second `AnyInvocable` to swap&period;
|===


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