:relfileprefix: ../../../../ [#boost-urls-grammar-string_view_base-compare-02] = xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/grammar.adoc[pass:[grammar]]::xref:boost/urls/grammar/string_view_base.adoc[pass:[string_view_base]]::compare Return the result of comparing to another string == Synopsis Declared in header `` [source,cpp,subs="verbatim,macros,-callouts"] ---- constexpr int compare(core::string_view str) const noexcept; ---- == Description See `core::string_view::compare`