在线文档教程
C++
文件系统 | Filesystem

std::filesystem::swap(std::filesystem::path)

文件系统::交换%28std::file system::path%29

void swap( path& lhs, path& rhs (since C++17)

交换状态lhs与...rhs.有效地打电话lhs.swap(rhs)...

参数

lhs, rhs-paths whose states to swap

返回值

%280%29

例外

noexcept规格:

noexcept

另见

swapswaps two paths (public member function)

© cppreference.com

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

http://en.cppreference.com/w/cpp/file system/path/swap 2