fs::path::operator/=

Division assignment operators

Synopses

Declared in <util/fs.h>

Deleted to forbid appending a std::string, which decodes locale-dependently on Windows.

path&
operator/=(std::string s) = delete;
» more...
[[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]]
path&
operator/=(path const& __p);
» more...

Append a std::filesystem::path component with a directory separator.

path&
operator/=(std::filesystem::path const& path);
» more...

Append a C string literal component with a directory separator.

path&
operator/=(char const* c);
» more...
template<class _Source>
[[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]]
path&
operator/=(_Source const& __src);
» more...

Return Value

A reference to this object.

Parameters

NameDescription
sThe string that would be appended.
pathThe path component to append.
cThe null-terminated string component to append.