MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / operator<=>

Method operator<=>

include/stringzilla/stringzilla.hpp:3119–3119  ·  view source on GitHub ↗

@brief Computes the lexicographic ordering between this and the @p other string. */

Source from the content-addressed store, hash-verified

3117
3118 /** @brief Computes the lexicographic ordering between this and the @p other string. */
3119 std::strong_ordering operator<=>(basic_string const &other) const noexcept { return view() <=> other.view(); }
3120 std::strong_ordering operator<=>(string_view other) const noexcept { return view() <=> other; }
3121 std::strong_ordering operator<=>(const_pointer other) const noexcept { return view() <=> string_view(other); }
3122

Callers

nothing calls this directly

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected