absl::operator==

Compares a value to the referenced value of an optional_ref.

Synopsis

Declared in <absl/types/optional_ref.h>

template<
    typename T,
    typename U,
    typename = /* implementation-defined */>
constexpr
bool
operator==(
    T const& a,
    optional_ref<U> b);

Return Value

true if b holds a value equal to a.

Parameters

NameDescription
aThe value to compare.
bThe reference to compare against.