[#absl-any_span_transform-Identity]
= xref:absl.adoc[absl]::xref:absl/any_span_transform.adoc[any&lowbar;span&lowbar;transform]::Identity
:relfileprefix: ../../
:mrdocs:

Returns a functor that returns whatever is passed to it&period;

== Synopsis

Declared in `&lt;absl&sol;types&sol;any&lowbar;span&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/any_span_transform/IdentityT.adoc[IdentityT] const&
Identity();
----

== Description

Prefer `AnySpan`&apos;s implicit constructor directly&semi; this may be useful when writing templates on top of `AnySpan`&period; The reference stays valid for the duration of the program&period;

== Return Value

A const reference to the shared identity functor&period;


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