[#boost-urls-grammar-string_view_base-compare-0d]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::xref:boost/urls/grammar/string_view_base.adoc[string&lowbar;view&lowbar;base]::compare
:relfileprefix: ../../../../
:mrdocs:


== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/string_view_base.hpp#L347[boost&sol;url&sol;grammar&sol;string&lowbar;view&lowbar;base&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
int
xref:boost/urls/grammar/string_view_base/compare-02.adoc[compare](core::string&lowbar;view str) const noexcept;
----

[.small]#xref:boost/urls/grammar/string_view_base/compare-02.adoc[_» more..._]#

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
int
xref:boost/urls/grammar/string_view_base/compare-0a.adoc[compare](
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] pos1,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] n1,
    core::string&lowbar;view str) const;
----

[.small]#xref:boost/urls/grammar/string_view_base/compare-0a.adoc[_» more..._]#

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
int
xref:boost/urls/grammar/string_view_base/compare-0e.adoc[compare](
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] pos1,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] n1,
    core::string&lowbar;view str,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] pos2,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] n2) const;
----

[.small]#xref:boost/urls/grammar/string_view_base/compare-0e.adoc[_» more..._]#

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

[.small]#xref:boost/urls/grammar/string_view_base/compare-07.adoc[_» more..._]#

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
int
xref:boost/urls/grammar/string_view_base/compare-0b.adoc[compare](
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] pos1,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] n1,
    char const* s) const;
----

[.small]#xref:boost/urls/grammar/string_view_base/compare-0b.adoc[_» more..._]#

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
int
xref:boost/urls/grammar/string_view_base/compare-0c.adoc[compare](
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] pos1,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] n1,
    char const* s,
    xref:boost/urls/grammar/string_view_base/size_type.adoc[size&lowbar;type] n2) const;
----

[.small]#xref:boost/urls/grammar/string_view_base/compare-0c.adoc[_» more..._]#



[.small]#Created with https://www.mrdocs.com[MrDocs]#
