[#fs-path-operator_assign-0b] = xref:fs.adoc[fs]::xref:fs/path.adoc[path]::operator= :relfileprefix: ../../ :mrdocs: Assignment operators == Synopses Declared in `<util/fs.h>` Assign from a std::filesystem::path. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:fs/path.adoc[path]& xref:fs/path/operator_assign-06.adoc[operator=](std::filesystem::path path); ---- [.small]#xref:fs/path/operator_assign-06.adoc[_» more..._]# Deleted to forbid std::string assignment, which decodes locale‐dependently on Windows. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:fs/path.adoc[path]& xref:fs/path/operator_assign-03.adoc[operator=](std::string s) = delete; ---- [.small]#xref:fs/path/operator_assign-03.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]] path& xref:fs/path/operator_assign-05.adoc[operator=](path const& __p); ---- [.small]#xref:fs/path/operator_assign-05.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]] path& xref:fs/path/operator_assign-0d.adoc[operator=](path&& __p) noexcept; ---- [.small]#xref:fs/path/operator_assign-0d.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]] path& xref:fs/path/operator_assign-007.adoc[operator=](string_type&& __s) noexcept; ---- [.small]#xref:fs/path/operator_assign-007.adoc[_» more..._]# Assign from a C string literal, which is safe as long as the literal is ASCII. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:fs/path.adoc[path]& xref:fs/path/operator_assign-000.adoc[operator=](char const* c); ---- [.small]#xref:fs/path/operator_assign-000.adoc[_» more..._]# [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _Source> [[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]] path& xref:fs/path/operator_assign-02.adoc[operator=](_Source const& __src); ---- [.small]#xref:fs/path/operator_assign-02.adoc[_» more..._]# == Return Value A reference to this object. == Parameters [cols="1,4"] |=== | Name| Description | *path* | The standard path to move from. | *s* | The string that would be assigned from. | *c* | The null‐terminated string to assign from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#