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 요구사항을 충족해야 합니다.

반환값

(없음)

예제

참고 항목

내용을 교환합니다
(public member function)