Namespaces
Variants

std:: swap (std::match_results)

From cppreference.net
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
ヘッダーで定義 <regex>
template < class BidirIt, class Alloc >

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

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

std::swap アルゴリズムを std::match_results に対して特殊化します。 x1 の内容と x2 の内容を交換します。実質的には x1. swap ( x2 ) を呼び出します。

目次

パラメータ

x1, x2 - 内容が交換されるmatch_resultsオブジェクト
型要件
-
BidirIt LegacyBidirectionalIterator の要件を満たさなければならない
-
Alloc Allocator の要件を満たさなければならない

戻り値

(なし)

関連項目

内容を交換する
(公開メンバ関数)