[#fs-path-compare-00]
= xref:fs.adoc[fs]::xref:fs/path.adoc[path]::compare
:relfileprefix: ../../
:mrdocs:

== Synopses

Declared in `&lt;util&sol;fs&period;h&gt;`


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;visibility&lowbar;&lowbar;, &lowbar;&lowbar;exclude&lowbar;from&lowbar;explicit&lowbar;instantiation&lowbar;&lowbar;, &lowbar;&lowbar;abi&lowbar;tag&lowbar;&lowbar;&rsqb;&rsqb;
int
xref:fs/path/compare-0d.adoc[compare](&lowbar;&lowbar;string&lowbar;view &lowbar;&lowbar;s) const;
----

[.small]#xref:fs/path/compare-0d.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;visibility&lowbar;&lowbar;, &lowbar;&lowbar;exclude&lowbar;from&lowbar;explicit&lowbar;instantiation&lowbar;&lowbar;, &lowbar;&lowbar;abi&lowbar;tag&lowbar;&lowbar;&rsqb;&rsqb;
int
xref:fs/path/compare-06f.adoc[compare](path const& &lowbar;&lowbar;p) const noexcept;
----

[.small]#xref:fs/path/compare-06f.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;visibility&lowbar;&lowbar;, &lowbar;&lowbar;exclude&lowbar;from&lowbar;explicit&lowbar;instantiation&lowbar;&lowbar;, &lowbar;&lowbar;abi&lowbar;tag&lowbar;&lowbar;&rsqb;&rsqb;
int
xref:fs/path/compare-0f.adoc[compare](string&lowbar;type const& &lowbar;&lowbar;s) const;
----

[.small]#xref:fs/path/compare-0f.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;visibility&lowbar;&lowbar;, &lowbar;&lowbar;exclude&lowbar;from&lowbar;explicit&lowbar;instantiation&lowbar;&lowbar;, &lowbar;&lowbar;abi&lowbar;tag&lowbar;&lowbar;&rsqb;&rsqb;
int
xref:fs/path/compare-068.adoc[compare](value&lowbar;type const* &lowbar;&lowbar;s) const;
----

[.small]#xref:fs/path/compare-068.adoc[_» more&period;&period;&period;_]#

== Return Value

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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