folly::operator==

Tests whether an Optional is empty.

Synopsis

Declared in <folly/Optional.h>

template<class V>
constexpr
bool
operator==(
    Optional<V> const& a,
    None none) noexcept;

Return Value

true if a has no value.

Parameters

NameDescription
aThe Optional operand.
noneThe None tag.