Assignment operators
Synopses
Declared in <util/fs.h>
Assign from a std::filesystem::path.
path&
operator=(std::filesystem::path path);
Deleted to forbid std::string assignment, which decodes locale‐dependently on Windows.
path&
operator=(std::string s) = delete;
[[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]]
path&
operator=(path const& __p);
[[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]]
path&
operator=(path&& __p) noexcept;
[[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]]
path&
operator=(string_type&& __s) noexcept;
Assign from a C string literal, which is safe as long as the literal is ASCII.
path&
operator=(char const* c);
template<class _Source>
[[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]]
path&
operator=(_Source const& __src);
Return Value
A reference to this object.
Parameters
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. |
Created with MrDocs