[#absl-AnyInvocable-operator_assign-0d]
= xref:absl.adoc[absl]::xref:absl/AnyInvocable.adoc[AnyInvocable]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assigns an `AnyInvocable` from an existing `AnyInvocable` instance&period;

== Synopsis

Declared in `&lt;absl&sol;functional&sol;any&lowbar;invocable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class F&gt;
requires internal&lowbar;any&lowbar;invocable&colon;&colon;CanAssign&lt;Sig, F&gt;&colon;&colon;value
xref:absl/AnyInvocable.adoc[AnyInvocable]&
operator&equals;(F&& f);
----

== Description

Upon assignment, `&ast;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&period;

== Return Value

A reference to `&ast;this`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *f*
| The invocable object to assign&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
