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

Return `true` if the value of the specified `lhs` stack is lexicographically greater than that of the specified `rhs` stack, and `false` otherwise&period; The value of stack `lhs` is lexicographically greater than that of stack `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;

== Synopsis

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

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


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