[#absl-AnyInvocable-operator_assign-0d] = xref:absl.adoc[absl]::xref:absl/AnyInvocable.adoc[AnyInvocable]::operator= :relfileprefix: ../../ :mrdocs: Assigns an `AnyInvocable` from an existing `AnyInvocable` instance. == Synopsis Declared in `<absl/functional/any_invocable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class F> requires internal_any_invocable::CanAssign<Sig, F>::value xref:absl/AnyInvocable.adoc[AnyInvocable]& operator=(F&& f); ---- == Description Upon assignment, `*this` is only empty if `f` is a function pointer or member pointer type and is null, or if `f` is an `AnyInvocable` that is empty. == Return Value A reference to `*this`. == Parameters [cols="1,4"] |=== | Name| Description | *f* | The invocable object to assign. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#