absl::GenericCompare

Compares lhs and rhs over the first size_to_compare bytes.

Synopsis

Declared in <absl/strings/cord.h>

ResultType
GenericCompare(
    Cord const& lhs,
    RHS const& rhs,
    size_t size_to_compare);

Return Value

The comparison result as ResultType.

Template Parameters

NameDescription
ResultTypeThe result type of the comparison.
RHSThe right-hand operand type.

Parameters

NameDescription
lhsThe left-hand Cord.
rhsThe right-hand operand.
size_to_compareThe number of bytes to compare.