:relfileprefix: ../../../../ [#E20A8FE539D9A38B7058783A31490904F7FC82AA] = Function string_view_base::compare pass:v,q[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, 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; ---- == Description pass:v,q[See `core::string_view::compare`] == Return Value * `int` == Parameters |=== | Name | Type | *pos1* | `size_type` | *n1* | `size_type` | *str* | `string_view` | *pos2* | `size_type` | *n2* | `size_type` |===