W3cubDocs

/C++

std::filesystem::path::make_preferred

path& make_preferred()
(1) (since C++17)

Converts all directory separators in path to the preferred directory separator.

For example, on systems, where \ is the preferred separator, the path foo/bar will be converted to foo\bar.

Parameters

(none).

Return value

*this.

Exceptions

(none).

Example

See also

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/filesystem/path/make_preferred