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

定义于头文件 <filesystem>
path operator/( const path& lhs, const path& rhs );
(C++17 起)

若适合(细节见 operator/= ),则以偏好目录分隔符连接二个路径组分。

等效于返回 path(lhs) /= rhs

目录

参数

lhs, rhs - 要连接的路径

返回值

路径连接的结果。

示例

参阅

添加元素到带目录分隔符的路径
(公开成员函数)

版本历史

  • (当前 | 先前 2017年9月29日 (五) 21:23Fruderica讨论 | 贡献 . . (680字节) (-9). . (correction) (撤销)
  • 当前 | 先前 2017年9月29日 (五) 21:22Fruderica讨论 | 贡献 . . (689字节) (-26). . (merge noexcept) (撤销)
  • 当前 | 先前) 2017年5月1日 (一) 07:17Fruderica讨论 | 贡献. . (715字节) (+715). . (以“{{cpp/filesystem/title|operator/{{small|(std::filesystem::path)}}}} {{cpp/filesystem/path/navbar}} {{dcl begin}} {{dcl header | filesystem}} {{dcl | since=c++17 | 1=...”为内容创建页面)