名稱空間
變體
操作

std::swap(std::match_results)

來自 cppreference.com
< cpp‎ | regex‎ | match results
 
 
 
正則表示式庫
(C++11)
演算法
迭代器
異常
特性
常量
(C++11)
正則表示式語法
 
 
在標頭檔案 <regex> 中定義
template< class BidirIt, class Alloc >

void swap( match_results<BidirIt,Alloc>& x1,

           match_results<BidirIt,Alloc>& x2 ) noexcept;
(C++11 起)

std::match_results 特化 std::swap 演算法。交換 x1x2 的內容。等效地呼叫 x1.swap(x2)

目錄

[編輯] 引數

x1, x2 - 將交換其內容的 match_results 物件
型別要求
-
BidirIt 必須滿足 LegacyBidirectionalIterator 的要求。
-
Alloc 必須滿足 Allocator 的要求。

[編輯] 返回值

(無)

[編輯] 示例

[編輯] 參閱

交換內容
(公開成員函式) [編輯]