swap()
Declared in <absl/functional/any_invocable.h>
void
swap(
AnyInvocable& f1,
AnyInvocable& f2) noexcept;
This function is a hidden friend of AnyInvocable, declared only inside that class: it can be found only through argument-dependent lookup.
Exchanges the targets of f1 and f2.
| Name | Description |
|---|---|
| f1 | The first AnyInvocable to swap. |
| f2 | The second AnyInvocable to swap. |