:relfileprefix: ../../../../ [#boost-urls-grammar-string_view_base-compare-09] == 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( 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; ---- === Description See `core::string_view::compare`