:relfileprefix: ../../../../ [#boost-urls-grammar-string_view_base-compare-07] == 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(char const* s) const noexcept; ---- === Description See `core::string_view::compare`