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;
[[__visibility__, __exclude_from_explicit_instantiation__, __abi_tag__]]
path&
operator/=(path const& __p);

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

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

Append a C string literal component with a directory separator.

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

s

The string that would be appended.

path

The path component to append.

c

The null‐terminated string component to append.

Created with MrDocs