名前空間
変種
操作

std::swap(std::match_results)

From cppreference.com
< cpp‎ | regex‎ | match results
 
 
 
正規表現ライブラリ
クラス
(C++11)
アルゴリズム
イテレータ
例外
Traits
定数
(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 アルゴリズムの特殊化。 x1 の内容を x2 の内容と交換します。実質的に x1.swap(x2) を呼び出します。

目次

[編集] パラメータ

x1, x2 - 交換される内容を持つ match_results オブジェクト
型要件
-
BidirItLegacyBidirectionalIterator の要件を満たしている必要があります。
-
AllocAllocator の要件を満たす必要があります。

[編集] 戻り値

(なし)

[編集]

[編集] 関連項目

内容を交換する
(public member function) [編集]
English 日本語 中文(简体) 中文(繁體)