absl::GenericCompare

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

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.