std::filesystem::path::make_preferred
path& make_preferred() | (1) | (since C++17) |
---|
将路径中的所有目录分隔符转换为首选目录分隔符。
例如,在系统上,\
是首选分隔符,则为路径。foo/bar
将被转换为foo\bar
...
参数
%280%29
返回值
*this
...
例外
%280%29
例
另见
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com