cppreference.com
建立賬戶
登入
名稱空間
頁面
討論
變體
檢視
檢視
編輯
歷史
操作
std::experimental::filesystem::path::
swap
來自 cppreference.com
<
cpp
|
experimental
|
fs
|
path
C++
編譯器支援
自由(freestanding)與宿主(hosted)
語言
標準庫
標準庫標頭檔案
具名要求
特性測試宏
(C++20)
語言支援庫
概念庫
(C++20)
診斷庫
記憶體管理庫
超程式設計庫
(C++11)
通用工具庫
容器庫
迭代器庫
範圍庫
(C++20)
演算法庫
字串庫
文字處理庫
數值庫
日期和時間庫
輸入/輸出庫
檔案系統庫
(C++17)
併發支援庫
(C++11)
執行控制庫
(C++26)
技術規範
符號索引
外部庫
[編輯]
實驗性
技術規範
檔案系統庫
(檔案系統 TS)
庫基礎
(庫基礎 TS)
庫基礎 2
(庫基礎 TS v2)
庫基礎 3
(庫基礎 TS v3)
並行性擴充套件
(並行性 TS)
並行性擴充套件 2
(並行性 TS v2)
併發性擴充套件
(併發性 TS)
併發擴充套件 2
(concurrency TS v2)
概念
(概念 TS)
範圍
(範圍 TS)
反射
(反射 TS)
數學特殊函式
(特殊函式 TR)
實驗性非 TS
模式匹配
線性代數
std::execution
契約
2D 圖形
[編輯]
檔案系統庫
類
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::copy_options
filesystem::directory_options
filesystem::file_time_type
函式
filesystem::absolute
filesystem::system_complete
filesystem::canonical
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
[編輯]
path
成員函式
path::path
path::~path
path::operator=
path::assign
path::append
operator /=
path::concat
operator +=
path::clear
path::make_preferred
path::remove_filename
path::replace_filename
path::replace_extension
path::swap
path::compare
path::c_str
path::native
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::begin
path::end
路徑分解
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)
operator==
operator!=
operator<
operator<=
operator>
operator>=
operator/
operator<<
operator>>
u8path
[編輯]
void
swap
(
path
&
other
)
;
(1)
(filesystem TS)
交換
*
this
與
other
的內容。
目錄
1
引數
2
返回值
3
異常
4
複雜度
5
另請參閱
[
編輯
]
引數
其他
-
另一個要交換內容的路徑
[
編輯
]
返回值
(無)
[
編輯
]
異常
noexcept
規範:
noexcept
[
編輯
]
複雜度
常數時間。
[
編輯
]
參閱
本節不完整
分類
:
未索引的頁面
無條件無異常
待辦事項(無理由)
隱藏分類
帶有未稽核無條件 noexcept 模板的頁面
帶有未經稽核的 noexcept 模板的頁面