API Reference Document
std::filesystem::path::
clear
<
cpp
|
filesystem
|
path
C++
语言
标准库头文件
自立与有宿主实现
具名要求
语言支持库
概念库
(C++20)
诊断库
工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
本地化库
输入/输出库
文件系统库
(C++17)
正则表达式库
(C++11)
原子操作库
(C++11)
线程支持库
(C++11)
技术规范
文件系统库
类
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
非成员函数
swap(path)
hash_value
operator==
operator!=
operator<
operator<=
operator>
operator>=
operator<=>
(C++20 前)
(C++20 前)
(C++20 前)
(C++20 前)
(C++20 前)
(C++20)
operator/
operator<<
operator>>
u8path
void
clear
(
)
noexcept
;
(C++17 起)
清空存储的路径名。调用后
empty()
为
true
。
参数
(无)
返回值
(无)