cppreference.com
创建账户
登录
命名空间
页面
讨论
变体
视图
视图
编辑
历史
操作
std::filesystem::path::
swap
来自 cppreference.com
<
cpp
|
filesystem
|
path
C++
编译器支持
独立和托管
语言
标准库
标准库头文件
命名要求
功能测试宏
(C++20)
语言支持库
概念库
(C++20)
元编程库
(C++11)
诊断库
通用工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
本地化库
输入/输出库
文件系统库
(C++17)
正则表达式库
(C++11)
并发支持库
(C++11)
执行支持库
(C++26)
技术规范
符号索引
外部库
[编辑]
文件系统库
类
filesystem::path
filesystem::filesystem_error
filesystem::directory_entry
filesystem::directory_iterator
filesystem::recursive_directory_iterator
filesystem::file_status
filesystem::space_info
filesystem::file_type
filesystem::perms
filesystem::perm_options
filesystem::copy_options
filesystem::directory_options
filesystem::file_time_type
函数
filesystem::absolute
filesystem::canonical
filesystem::weakly_canonical
filesystem::relative
filesystem::proximate
filesystem::copy
filesystem::copy_file
filesystem::copy_symlink
filesystem::create_directory
filesystem::create_directories
filesystem::create_hard_link
filesystem::create_symlink
filesystem::create_directory_symlink
filesystem::current_path
filesystem::exists
filesystem::equivalent
filesystem::file_size
filesystem::hard_link_count
filesystem::last_write_time
filesystem::permissions
filesystem::read_symlink
filesystem::remove
filesystem::remove_all
filesystem::rename
filesystem::resize_file
filesystem::space
filesystem::status
filesystem::symlink_status
filesystem::temp_directory_path
文件类型
filesystem::is_block_file
filesystem::is_character_file
filesystem::is_directory
filesystem::is_empty
filesystem::status_known
filesystem::is_fifo
filesystem::is_other
filesystem::is_regular_file
filesystem::is_socket
filesystem::is_symlink
[编辑]
std::filesystem::path
常量
path::native_format
path::generic_format
path::auto_format
成员函数
path::path
path::~path
path::operator=
path::assign
path::append
path::operator/=
path::concat
path::operator+=
path::clear
path::make_preferred
path::remove_filename
path::replace_filename
path::replace_extension
path::swap
path::compare
path::begin
path::end
path::c_str
path::native
path::operator string_type
path::string
path::u8string
path::u16string
path::u32string
path::wstring
path::generic_string
path::generic_u8string
path::generic_u16string
path::generic_u32string
path::generic_wstring
path::lexically_normal
path::lexically_relative
path::lexically_proximate
路径分解
path::root_name
path::root_directory
path::root_path
path::relative_path
path::parent_path
path::filename
path::stem
path::extension
path::empty
path::has_root_path
path::has_root_name
path::has_root_directory
path::has_relative_path
path::has_parent_path
path::has_filename
path::has_stem
path::has_extension
path::is_absolute
path::is_relative
非成员函数
operator==
operator!=
operator<
operator<=
operator>
operator>=
operator<=>
(直到 C++20)
(直到 C++20)
(直到 C++20)
(直到 C++20)
(直到 C++20)
(C++20)
operator/
operator<<
operator>>
swap
(std::filesystem::path)
hash_value
u8path
辅助类
hash
<std::filesystem::path>
formatter
<std::filesystem::path>
(C++26)
[编辑]
void
swap
(
path
&
other
)
noexcept
;
(1)
(自 C++17 起)
交换
*
this
和
other
的内容(包括本机和通用格式)。
内容
1
参数
2
返回值
3
复杂度
4
另请参阅
[
编辑
]
参数
other
-
另一个路径,用来交换内容
[
编辑
]
返回值
(无)
[
编辑
]
复杂度
常数。
[
编辑
]
另请参阅
swap
(std::filesystem::path)
(C++17)
专门化
std::swap
算法
(函数)
[编辑]