absl::AnyInvocable::operator=

Assigns an AnyInvocable through move-assignment. Note that f is not guaranteed to be empty after move-assignment although it may be.

Synopsis

Declared in <absl/functional/any_invocable.h>

AnyInvocable&
operator=(AnyInvocable&& f) noexcept = default;

Return Value

A reference to *this.

Parameters

NameDescription
fThe AnyInvocable to move from.