cppreference.com
建立賬戶
登入
名稱空間
頁面
討論
變體
檢視
檢視
編輯
歷史
操作
std::match_results<BidirIt,Alloc>::
swap
來自 cppreference.com
<
cpp
|
regex
|
match results
C++
編譯器支援
自由(freestanding)與宿主(hosted)
語言
標準庫
標準庫標頭檔案
具名要求
特性測試宏
(C++20)
語言支援庫
概念庫
(C++20)
診斷庫
記憶體管理庫
超程式設計庫
(C++11)
通用工具庫
容器庫
迭代器庫
範圍庫
(C++20)
演算法庫
字串庫
文字處理庫
數值庫
日期和時間庫
輸入/輸出庫
檔案系統庫
(C++17)
併發支援庫
(C++11)
執行控制庫
(C++26)
技術規範
符號索引
外部庫
[編輯]
文字處理庫
本地化庫
正則表示式庫
(C++11)
格式化庫
(C++20)
空終止序列工具
位元組字串
多位元組字串
寬字串
原生數值轉換
to_chars
(C++17)
to_chars_result
(C++17)
from_chars
(C++17)
from_chars_result
(C++17)
chars_format
(C++17)
文字編碼標識
text_encoding
(C++26)
[編輯]
正則表示式庫
類
basic_regex
(C++11)
sub_match
(C++11)
match_results
(C++11)
演算法
regex_match
(C++11)
regex_search
(C++11)
regex_replace
(C++11)
迭代器
regex_iterator
(C++11)
regex_token_iterator
(C++11)
異常
regex_error
(C++11)
特性
regex_traits
(C++11)
常量
syntax_option_type
(C++11)
match_flag_type
(C++11)
error_type
(C++11)
正則表示式語法
修改後的 ECMAScript-262
(C++11)
[編輯]
std::match_results
成員函式
match_results::match_results
match_results::~match_results
match_results::operator=
match_results::get_allocator
狀態
match_results::ready
元素訪問
match_results::size
match_results::max_size
match_results::empty
match_results::length
match_results::position
match_results::str
match_results::operator[]
match_results::prefix
match_results::suffix
迭代器
match_results::begin
match_results::cbegin
match_results::end
match_results::cend
格式
match_results::format
修改器
match_results::swap
非成員函式
operator==
operator!=
(直到 C++20)
swap
(std::match_results)
[編輯]
void
swap
(
match_results
&
other
)
noexcept
;
(C++11 起)
交換兩個
match_results
物件的共享狀態。
目錄
1
引數
2
返回值
3
示例
4
參見
[
編輯
]
引數
其他
-
要交換的
match_results
[
編輯
]
返回值
(無)
[
編輯
]
示例
本節不完整
原因:無示例
[
編輯
]
參閱
std::swap
(std::match_results)
(C++11)
特化
std::swap
演算法
(函式模板)
[編輯]
分類
:
待辦事項:無示例