absl::Cord::Compare

Compare overloads

Synopses

Declared in <absl/strings/cord.h>

Compares 'this' Cord with rhs.

int
Compare(std::string_view rhs) const;
» more...

Compares 'this' Cord with another Cord.

int
Compare(Cord const& rhs) const;
» more...

Return Value

  • -1, 0, or 1 as described above.
  • -1, 0, or 1 for less than, equal, or greater than.

Parameters

NameDescription
rhsThe string data to compare against.