absl::operator!=

Tests whether an optional_ref holds a value.

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 holds a value.

Parameters

NameDescription
aThe reference to test.
bThe std::nullopt tag.