Compares lhs and rhs over the first size_to_compare bytes.

Synopsis

Declared in <absl/strings/cord.h>

template<
    typename ResultType,
    typename RHS>
ResultType
GenericCompare(
    Cord const& lhs,
    RHS const& rhs,
    size_t size_to_compare);
Note

This function is a hidden friend of Cord, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

The comparison result as ResultType.

Template Parameters

Name

Description

ResultType

The result type of the comparison.

RHS

The right‐hand operand type.

Parameters

Name

Description

lhs

The left‐hand Cord.

rhs

The right‐hand operand.

size_to_compare

The number of bytes to compare.

Created with MrDocs