swap()

Synopsis

Declared in <absl/functional/any_invocable.h>

void
swap(
    AnyInvocable& f1,
    AnyInvocable& f2) noexcept;

Description

Exchanges the targets of f1 and f2.

Parameters

Name

Description

f1

The first AnyInvocable to swap.

f2

The second AnyInvocable to swap.

Created with MrDocs