[#absl-any_span_transform-Deref] = xref:absl.adoc[absl]::xref:absl/any_span_transform.adoc[any_span_transform]::Deref :relfileprefix: ../../ :mrdocs: Returns a functor that dereferences whatever is passed to it. == Synopsis Declared in `<absl/types/any_span.h>` [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::optional`. Do not use it with containers holding elements that cannot be dereferenced, such as null pointers. The reference stays valid for the duration of the program. == Return Value A const reference to the shared deref functor. [.small]#Created with https://www.mrdocs.com[MrDocs]#