absl::operator<=>

Three-way compares a Cord with string data.

Synopsis

Declared in <absl/strings/cord.h>

std::strong_ordering
operator<=>(
    Cord const& lhs,
    std::string_view rhs);

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 ordering of lhs relative to rhs.

Parameters

NameDescription
lhsThe left-hand Cord.
rhsThe right-hand string data.