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

Return `true` if `lhs` is lexicographically greater than `rhs`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE,
    class CONTAINER&gt;
bool
operator&gt;(
    xref:bsl/queue-0a5.adoc[queue&lt;VALUE, CONTAINER&gt;] const& lhs,
    xref:bsl/queue-0a5.adoc[queue&lt;VALUE, CONTAINER&gt;] const& rhs);
----

== Description

Return `true` if the value of the specified `lhs` queue is lexicographically greater than that of the specified `rhs` queue, and `false` otherwise&period; The value of queue `lhs` is lexicographically greater than that of queue `rhs` if `rhs` is lexicographically less than `lhs` (see `operator&lt;`)&period; This method requires that `operator&lt;`, inducing a total order, be defined for `value&lowbar;type`&period; Note that this operator returns `rhs &lt; lhs`&period;

== Return Value

`true` if `lhs` is lexicographically greater than `rhs`, otherwise `false`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand queue to compare
| *rhs*
| right&hyphen;hand queue to compare
|===


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