cppreference.com
建立賬戶
登入
名稱空間
頁面
討論
變體
檢視
檢視
編輯
歷史
操作
std::filesystem::path::
swap
來自 cppreference.com
<
cpp
|
filesystem
|
path
C++
編譯器支援
自由(freestanding)與宿主(hosted)
語言
標準庫
標準庫標頭檔案
具名要求
特性測試宏
(C++20)
語言支援庫
概念庫
(C++20)
診斷庫
記憶體管理庫
超程式設計庫
(C++11)
通用工具庫
容器庫
迭代器庫
範圍庫
(C++20)
演算法庫
字串庫
文字處理庫
數值庫
日期和時間庫
輸入/輸出庫
檔案系統庫
(C++17)
併發支援庫
(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::file_time_type
filesystem::perms
filesystem::perm_options
filesystem::copy_options
filesystem::directory_options
函式
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::temp_directory_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::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
參見
[
編輯
]
引數
其他
-
另一個要交換內容的路徑
[
編輯
]
返回值
(無)
[
編輯
]
複雜度
常數時間。
[
編輯
]
參閱
swap
(std::filesystem::path)
(C++17)
特化
std::swap
演算法
(函式)
[編輯]