Return whether the operands have the same value.
Declared in <bslstl_optional.h>
template<class t_TYPE>
constexpr
bool
operator==(
bsl::optional<t_TYPE> const& value,
bsl::nullopt_t const& nullopt) noexcept;
Return true if the specified value is disengaged, and false otherwise. This function can be called in constant expressions only if t_TYPE is not allocator-aware.
true if value is disengaged, and false otherwise
| Name | Description |
|---|---|
| value | value compared with or used to initialize the optional |
| nullopt | disengaged-optional tag; value is unused |