[#absl-optional_ref-0c-2constructor-04] = xref:absl.adoc[absl]::xref:absl/optional_ref-0c.adoc[optional_ref]::optional_ref :relfileprefix: ../../ :mrdocs: Constructs an `optional_ref` from a pointer, where null means absent. == Synopsis Declared in `<absl/types/optional_ref.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr optional_ref(T* input); ---- == Parameters [cols="1,4"] |=== | Name| Description | *input* | The pointer to refer to, or null for an empty reference. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#