[#bsl-operator_gt-04] = xref:bsl.adoc[bsl]::operator> :relfileprefix: ../ :mrdocs: Return whether the left‐hand operand is ordered after the right. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_LHS_TYPE, class t_RHS_TYPE> constexpr bool operator>( xref:bsl/optional-072.adoc[bsl::optional<t_LHS_TYPE>] const& lhs, t_RHS_TYPE const& rhs); ---- == Description Return `true` if the specified `lhs` `optional` object is ordered after the specified `rhs`, and `false` otherwise. `lhs` is ordered after `rhs` if `lhs` is engaged and `lhs.value()` is ordered after `rhs`. This function can be called in constant expressions only if `t_LHS_TYPE` is not allocator‐aware. == Return Value `true` if `lhs` is ordered after `rhs`, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand operand | *rhs* | right‐hand operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#