[#absl-GenericCompare]
= xref:absl.adoc[absl]::GenericCompare
:relfileprefix: ../
:mrdocs:

Compares `lhs` and `rhs` over the first `size&lowbar;to&lowbar;compare` bytes&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ResultType
GenericCompare(
    xref:absl/Cord.adoc[Cord] const& lhs,
    RHS const& rhs,
    size&lowbar;t size&lowbar;to&lowbar;compare);
----

== Return Value

The comparison result as `ResultType`&period;

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *ResultType*
| The result type of the comparison&period;
| *RHS*
| The right&hyphen;hand operand type&period;
|===

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| The left&hyphen;hand Cord&period;
| *rhs*
| The right&hyphen;hand operand&period;
| *size&lowbar;to&lowbar;compare*
| The number of bytes to compare&period;
|===


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