:relfileprefix: ../../../../
[#211BED3B7E0848C911BC30AD1B26D456683B329C]

= Function string_view_base::compare

pass:v,q[Return the result of comparing to another string]


== Synopsis

Declared in header `</boost/url/grammar/string_view_base.hpp#L355[boost/url/grammar/string_view_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
constexpr
int
compare(string_view str) const noexcept;
----

== Description

pass:v,q[See `core::string_view::compare`]



== Return Value

* `int` 


== Parameters

|===
| Name | Type 

| *str*
| `string_view`

|===



