std::filesystem::swap(std::filesystem::path)
来自cppreference.com
< cpp | filesystem | path
文件系统库
类 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
函数 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
文件类型 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::filesystem::path
常量 | |||||||||||||||||||||||||||||||
成员函数 | |||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
路径分解 | |||||||||||||||||||||||||||||||
非成员函数 | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
辅助类 | |||||||||||||||||||||||||||||||
在标头
<filesystem>
定义
|
||
void
swap(
std::filesystem::path&
lhs, std::filesystem::path&
rhs )
noexcept;
|
(C++17 起) | |
交换 lhs
与 rhs
的状态。等效于调用 lhs.swap(rhs) 。
参数
lhs, rhs | - | 要交换状态的 path |
返回值
(无)
参阅
交换两个路径 (公开成员函数) |