:relfileprefix: ../../../../
[#6359E4103B8AAF5508C81F586B66D7BC7615C086-compare]

= Overload set string_view_base::compare

== Members


pass:v,q[Return the result of comparing to another string]


[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
int
compare(string_view str) const noexcept;
  xref:boost/urls/grammar/string_view_base/compare-02.adoc[pass:c,q,m[*_» more..._*]]
----


pass:v,q[Return the result of comparing to another string]


[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
int
compare(
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos1,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1,
    string_view str) const;
  xref:boost/urls/grammar/string_view_base/compare-0a.adoc[pass:c,q,m[*_» more..._*]]
----


pass:v,q[Return the result of comparing to another string]


[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
int
compare(
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos1,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1,
    string_view str,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos2,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n2) const;
  xref:boost/urls/grammar/string_view_base/compare-0e.adoc[pass:c,q,m[*_» more..._*]]
----


pass:v,q[Return the result of comparing to another string]


[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
int
compare(const char* s) const noexcept;
  xref:boost/urls/grammar/string_view_base/compare-07.adoc[pass:c,q,m[*_» more..._*]]
----


pass:v,q[Return the result of comparing to another string]


[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
int
compare(
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos1,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1,
    const char* s) const;
  xref:boost/urls/grammar/string_view_base/compare-0b.adoc[pass:c,q,m[*_» more..._*]]
----


pass:v,q[Return the result of comparing to another string]


[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
int
compare(
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] pos1,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1,
    const char* s,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n2) const;
  xref:boost/urls/grammar/string_view_base/compare-0c.adoc[pass:c,q,m[*_» more..._*]]
----

