[#fs-path-operator_assign-0b]
= xref:fs.adoc[fs]::xref:fs/path.adoc[path]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assignment operators

== Synopses

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

Assign from a std&colon;&colon;filesystem&colon;&colon;path&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:fs/path.adoc[path]&
xref:fs/path/operator_assign-06.adoc[operator&equals;](std::filesystem::path path);
----

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:fs/path.adoc[path]&
xref:fs/path/operator_assign-03.adoc[operator&equals;](std::string s) = delete;
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&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;
path&
xref:fs/path/operator_assign-05.adoc[operator&equals;](path const& &lowbar;&lowbar;p);
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&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;
path&
xref:fs/path/operator_assign-0d.adoc[operator&equals;](path&& &lowbar;&lowbar;p) noexcept;
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&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;
path&
xref:fs/path/operator_assign-007.adoc[operator&equals;](string&lowbar;type&& &lowbar;&lowbar;s) noexcept;
----

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

Assign 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.adoc[path]&
xref:fs/path/operator_assign-000.adoc[operator&equals;](char const* c);
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;Source&gt;
&lsqb;&lsqb;&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;
path&
xref:fs/path/operator_assign-02.adoc[operator&equals;](&lowbar;Source const& &lowbar;&lowbar;src);
----

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

== Return Value

A reference to this object&period;

== Parameters

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


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