absl::AnyInvocable::operator=

Assigns an AnyInvocable from a nullptr, clearing the AnyInvocable. If not empty, destroys the target, putting *this into an empty state.

Synopsis

Declared in <absl/functional/any_invocable.h>

AnyInvocable&
operator=(std::nullptr_t unused) noexcept;

Return Value

A reference to *this.

Parameters

NameDescription
unusedUnused parameter.