[#beman-optional-operator_gt-05] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::operator> :relfileprefix: ../../ :mrdocs: Greater‐than operators == Synopses Declared in `<beman/optional/optional.hpp>` Orders two optionals with greater‐than. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U> constexpr bool xref:beman/optional/operator_gt-08.adoc[operator>]( xref:beman/optional/optional-03.adoc[optional<T>] const& lhs, xref:beman/optional/optional-03.adoc[optional<U>] const& rhs) requires detail::optional_gt_rel<T, U>; ---- [.small]#xref:beman/optional/operator_gt-08.adoc[_» more..._]# Orders an optional after a value with greater‐than. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U> constexpr bool xref:beman/optional/operator_gt-0d.adoc[operator>]( xref:beman/optional/optional-03.adoc[optional<T>] const& lhs, U const& rhs) requires (!detail::is_optional<U>) && detail::optional_gt_rel<T, U>; ---- [.small]#xref:beman/optional/operator_gt-0d.adoc[_» more..._]# Orders a value after an optional with greater‐than. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename U> constexpr bool xref:beman/optional/operator_gt-03.adoc[operator>]( T const& lhs, xref:beman/optional/optional-03.adoc[optional<U>] const& rhs) requires (!detail::is_optional<T>) && detail::optional_gt_rel<T, U>; ---- [.small]#xref:beman/optional/operator_gt-03.adoc[_» more..._]# == Return Value * `true` if `lhs` orders after `rhs.` * `true` if `lhs` is engaged and its contained value orders after `rhs.` * `true` if `rhs` is disengaged, or `lhs` orders after its contained value. == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | The left‐hand optional. | *rhs* | The right‐hand optional. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#