[#boost-urls-grammar-string_view_base-compare] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::xref:boost/urls/grammar/string_view_base.adoc[string_view_base]::compare :relfileprefix: ../../../../ :mrdocs: Return the result of comparing to another string == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/string_view_base.hpp#L347[boost/url/grammar/string_view_base.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr int xref:boost/urls/grammar/string_view_base/compare-02.adoc[compare](core::string_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_type] pos1, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1, core::string_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_type] pos1, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1, core::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; ---- [.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_type] pos1, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_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_type] pos1, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n1, char const* s, xref:boost/urls/grammar/string_view_base/size_type.adoc[size_type] n2) const; ---- [.small]#xref:boost/urls/grammar/string_view_base/compare-0c.adoc[_» more..._]# == Description See `core::string_view::compare` [.small]#Created with https://www.mrdocs.com[MrDocs]#