std::swap(std::match_results)
來自 cppreference.com
< cpp | regex | match results
在標頭檔案 <regex> 中定義 |
||
template< class BidirIt, class Alloc > void swap( match_results<BidirIt,Alloc>& x1, |
(C++11 起) | |
為 std::match_results 特化 std::swap 演算法。交換 x1 與 x2 的內容。等效地呼叫 x1.swap(x2)。
目錄 |
[編輯] 引數
x1, x2 | - | 將交換其內容的 match_results 物件 |
型別要求 | ||
-BidirIt 必須滿足 LegacyBidirectionalIterator 的要求。 | ||
-Alloc 必須滿足 Allocator 的要求。 |
[編輯] 返回值
(無)
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
交換內容 (公開成員函式) |