path& make_preferred() | (1) | (since C++17) |
Converts all directory separators in the generic-format view of the path to the preferred directory separator.
For example, on Windows, where \
is the preferred separator, the path foo/bar
will be converted to foo\bar
.
(none).
*this
.
(none).
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/filesystem/path/make_preferred