[#bsl-operator_gt-04]
= xref:bsl.adoc[bsl]::operator&gt;
:relfileprefix: ../
:mrdocs:

Return `true` if the specified `lhs` `optional` object is ordered after the specified `rhs`, and `false` otherwise&period; `lhs` is ordered after `rhs` if `lhs` is engaged and `lhs&period;value()` is ordered after `rhs`&period; This function can be called in constant expressions only if `t&lowbar;LHS&lowbar;TYPE` is not allocator&hyphen;aware&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;optional&period;h&gt;`

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


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