cppreference.com
建立用戶
登入
名字空間
頁面
討論
變換
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
檢視
檢視
編輯
歷史
動作
std::
swap
(std::basic_regex)
從 cppreference.com
<
cpp
|
regex
|
basic regex
C++
編譯器支持
自立實現與有宿主實現
語言
標準庫
標準庫標頭
具名要求
功能特性測試宏
(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::basic_regex
成員函數
basic_regex::basic_regex
basic_regex::~basic_regex
basic_regex::operator=
basic_regex::assign
觀察器
basic_regex::mark_count
basic_regex::flags
本地環境
basic_regex::getloc
basic_regex::imbue
修改器
basic_regex::swap
常量
非成員函數
swap
(std::basic_regex)
推導指引
(C++17)
[編輯]
template
<
class
CharT,
class
Traits
>
void
swap
(
basic_regex
<
CharT, Traits
>
&
lhs, basic_regex
<
CharT, Traits
>
&
rhs
)
noexcept
;
(C++11 起)
為
std::basic_regex
特化
std::swap
算法。交換
lhs
與
rhs
的狀態。相當於調用
lhs.
swap
(
rhs
)
。
目錄
1
參數
2
返回值
3
示例
4
參閱
[
編輯
]
參數
lhs, rhs
-
要交換的正則表達式
[
編輯
]
返回值
(無)
[
編輯
]
示例
本節未完成
原因:暫無示例
[
編輯
]
參閱
swap
交換內容
(公開成員函數)
[編輯]
1個分類
:
無示例的 todo