Tests whether an optional_ref holds a value.
Declared in <absl/types/optional_ref.h>
template<typename T>
constexpr
bool
operator!=(
optional_ref<T> a,
std::nullopt_t b);
true if a holds a value.
| Name | Description |
|---|---|
| a | The reference to test. |
| b | The std::nullopt tag. |