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

Returns a functor that dereferences 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/DerefT.adoc[DerefT] const&
Deref();
----

== Description

Works for smart and raw pointers, as well as `std&colon;&colon;optional`&period; Do not use it with containers holding elements that cannot be dereferenced, such as null pointers&period; The reference stays valid for the duration of the program&period;

== Return Value

A const reference to the shared deref functor&period;


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