[#beman-optional-operator_eq-08] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::operator== :relfileprefix: ../../ :mrdocs: Equality operator == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U> constexpr bool operator==( xref:beman/optional/optional-03.adoc[optional<T>] const& lhs, xref:beman/optional/optional-03.adoc[optional<U>] const& rhs) requires detail::optional_eq_rel<T, U>; ---- == Return Value `true` if the objects are equal, `false` otherwise == Parameters [cols=2] |=== | Name | Description | *lhs* | The left operand | *rhs* | The right operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#