在线文档教程
C++
文件系统 | Filesystem

std::filesystem::operator/(std::filesystem::path)

STD::文件系统::Operator/%28std::file system::path%29

Defined in header
path operator/( const path& lhs, const path& rhs (since C++17)

使用首选目录分隔符(如果适当的话)连接两个路径组件(参见operator/=详情见%29。

有效回报path(lhs) /= rhs...

参数

lhs, rhs-paths to concatenate

返回值

路径连接的结果。

例外

noexcept规格:

noexcept

另见

appendoperator/=appends elements to the path with a directory separator (public member function)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/file system/path/Operator[医]斜杠