Tests whether an optional_ref is empty.

Synopsis

Declared in <absl/types/optional_ref.h>

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

Return Value

true if a is empty.

Parameters

Name

Description

a

The reference to test.

b

The std::nullopt tag.

Created with MrDocs