[#boost-urls-decode_view-compare-0d]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/decode_view.adoc[decode&lowbar;view]::compare
:relfileprefix: ../../../
:mrdocs:

Return the result of comparing to another string

== Synopses

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/decode_view.hpp#L533[boost&sol;url&sol;decode&lowbar;view&period;hpp]&gt;`

Return the result of comparing to another string


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
int
xref:boost/urls/decode_view/compare-01.adoc[compare](xref:boost/urls/decode_view.adoc[decode&lowbar;view] other) const noexcept;
----

[.small]#xref:boost/urls/decode_view/compare-01.adoc[_» more&period;&period;&period;_]#

Return the result of comparing to another string


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
int
xref:boost/urls/decode_view/compare-02.adoc[compare](core::string&lowbar;view other) const noexcept;
----

[.small]#xref:boost/urls/decode_view/compare-02.adoc[_» more&period;&period;&period;_]#

== Return Value

Negative value if this string is less than the other character sequence, zero if the both character sequences are equal, positive value if this string is greater than the other character sequence

== Parameters

[cols=2]
|===
| Name
| Description
| *other*
| string to compare
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
