Compares the referenced value of an optional_ref to a value.
Declared in <absl/types/optional_ref.h>
template<
typename T,
typename U,
typename = /* implementation-defined */>
constexpr
bool
operator==(
optional_ref<T> a,
U const& b);
true if a holds a value equal to b.
| Name | Description |
|---|---|
| a | The reference to compare. |
| b | The value to compare against. |