[#fs-path-2constructor-066]
= xref:fs.adoc[fs]::xref:fs/path.adoc[path]::path
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Construct from a std&colon;&colon;filesystem&colon;&colon;path, for compatibility with standard&hyphen;library APIs&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:fs/path/2constructor-09.adoc[path](std::filesystem::path path);
----

[.small]#xref:fs/path/2constructor-09.adoc[_» more&period;&period;&period;_]#

Deleted to forbid std&colon;&colon;string construction, which decodes locale&hyphen;dependently on Windows&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:fs/path/2constructor-060.adoc[path](std::string s) = delete;
----

[.small]#xref:fs/path/2constructor-060.adoc[_» more&period;&period;&period;_]#

Construct from a C string literal, which is safe as long as the literal is ASCII&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:fs/path/2constructor-02.adoc[path](char const* c);
----

[.small]#xref:fs/path/2constructor-02.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *path*
| The standard path to move from&period;
| *s*
| The string that would be constructed from&period;
| *c*
| The null&hyphen;terminated string to construct from&period;
|===


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