首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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

Defined in header <filesystem>

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)

代码语言:txt
复制
 © cppreference.com

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

扫码关注腾讯云开发者

领取腾讯云代金券