absl::optional_ref::has_value

Determines whether the optional_ref contains a value.

Synopsis

Declared in <absl/types/optional_ref.h>

constexpr
bool
has_value() const;

Return Value

false if and only if *this is empty.