Constructs an optional_ref from a pointer, where null means absent.

Synopsis

Declared in <absl/types/optional_ref.h>

constexpr
optional_ref(T* input);

Parameters

Name

Description

input

The pointer to refer to, or null for an empty reference.

Created with MrDocs