[#absl-Cord-Compare-023]
= xref:absl.adoc[absl]::xref:absl/Cord.adoc[Cord]::Compare
:relfileprefix: ../../
:mrdocs:

`Compare` overloads

== Synopses

Declared in `&lt;absl&sol;strings&sol;cord&period;h&gt;`

Compares &apos;this&apos; Cord with rhs&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:absl/Cord/Compare-028.adoc[Compare](std::string&lowbar;view rhs) const;
----

[.small]#xref:absl/Cord/Compare-028.adoc[_» more&period;&period;&period;_]#

Compares &apos;this&apos; Cord with another Cord&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:absl/Cord/Compare-03.adoc[Compare](xref:absl/Cord.adoc[Cord] const& rhs) const;
----

[.small]#xref:absl/Cord/Compare-03.adoc[_» more&period;&period;&period;_]#

== Return Value

* &hyphen;1, 0, or 1 as described above&period;
* &hyphen;1, 0, or 1 for less than, equal, or greater than&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| The string data to compare against&period;
|===


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