std::filesystem:: swap (std::filesystem::path)
From cppreference.net
<
cpp
|
filesystem
|
path
C++
std::filesystem::path
| Member types | |||||||||||||||||||||||||||||||
| Member constants | |||||||||||||||||||||||||||||||
| Member functions | |||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
| Path decomposition | |||||||||||||||||||||||||||||||
| Non-member functions | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| Helper classes | |||||||||||||||||||||||||||||||
|
定义于头文件
<filesystem>
|
||
|
void
swap
(
std::
filesystem
::
path
&
lhs,
std::
filesystem
::
path
&
rhs
)
noexcept
;
|
(C++17 起) | |
交换 lhs 与 rhs 的状态。实际上调用 lhs. swap ( rhs ) 。
参数
| lhs, rhs | - | 需要交换状态的路径 |
返回值
(无)
参见
|
交换两个路径
(公开成员函数) |