absl::AnyInvocable::swap

absl::AnyInvocable::swap()

Synopsis

Declared in <absl/functional/any_invocable.h>

void
swap(AnyInvocable& other) noexcept;

Description

Exchanges the targets of *this and other.

Parameters

NameDescription
otherThe AnyInvocable to swap with.