std::filesystem::path::make_preferred

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部