Tests whether an optional_ref is empty.

Synopsis

Declared in <absl/types/optional_ref.h>

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

Return Value

true if b is empty.

Parameters

Name

Description

a

The std::nullopt tag.

b

The reference to test.

Created with MrDocs