[#BloombergLP-bdlb-operator_gt-07b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::operator&gt;
:relfileprefix: ../../
:mrdocs:

If neither of the specified `lhs` and `rhs` contain a value, return `false`&period; If `lhs` contains a value, and `rhs` does not, return `true`&period; If `lhs` does not contains a value, `rhs` does, return `false`&period; Otherwise, return `lhs&period;value &gt; rhs&period;value()`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;nullableallocatedvalue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class LHS&lowbar;TYPE,
    class RHS&lowbar;TYPE&gt;
bool
operator&gt;(
    xref:BloombergLP/bdlb/NullableAllocatedValue.adoc[NullableAllocatedValue&lt;LHS&lowbar;TYPE&gt;] const& lhs,
    xref:bsl/optional-072.adoc[bsl::optional&lt;RHS&lowbar;TYPE&gt;] const& rhs);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
