absl::operator!=

Tests whether an optional_ref differs from 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 does not hold a value equal to b.

Parameters

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