std::filesystem::path:: swap
From cppreference.net
<
cpp
|
filesystem
|
path
C++
std::filesystem::path
| Member types | ||||||||||||||||||||||||||
| Member constants | ||||||||||||||||||||||||||
| Member functions | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| Path decomposition | ||||||||||||||||||||||||||
| Non-member functions | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| Helper classes | ||||||||||||||||||||||||||
|
void
swap
(
path
&
other
)
noexcept
;
|
(1) | (自 C++17 起) |
交换
*
this
与
other
的内容(包括原生格式和通用格式)。
目录 |
参数
| 其他 | - | 用于交换内容的另一路径 |
返回值
(无)
复杂度
常量。
参阅
|
(C++17)
|
特化
std::swap
算法
(函数) |