absl::operator==

Compares the referenced values of two optional_refs.

Synopsis

Declared in <absl/types/optional_ref.h>

template<
    typename T,
    typename U>
constexpr
bool
operator==(
    optional_ref<T> a,
    optional_ref<U> b);

Return Value

true if both are empty or both hold equal values.

Parameters

NameDescription
aThe left operand.
bThe right operand.