Compares the referenced value of an optional_ref to a value.

Synopsis

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);

Return Value

true if a holds a value equal to b.

Parameters

Name

Description

a

The reference to compare.

b

The value to compare against.

Created with MrDocs