match_results_swap2
match_results_swap2 (일치 결과 교환)
std::swap(match_results 특수화)는 두 std::match_results의 내용을 교환하는 함수예요. C++11부터 사용할 수 있어요.
출처: cppreference
본문
<regex> 헤더에 정의되어 있고, 시그니처는 다음과 같아요.
template< class BidirIt, class Alloc >
void swap( match_results<BidirIt,Alloc>& x1,
match_results<BidirIt,Alloc>& x2 ) noexcept;
(since C++11)
std::match_results에 대한 std::swap 알고리즘을 특수화해요. x1의 내용을 x2와 교환해요. 효과적으로 x1.swap(x2)를 호출해요.
매개변수 (Parameters)
- x1, x2 — 내용을 교환할 match_results 객체
타입 요구사항 (Type requirements)
- BidirIt은 LegacyBidirectionalIterator 요구사항을 만족해야 해요.
- Alloc은 Allocator 요구사항을 만족해야 해요.
반환값 (Return value)
(없음)
예제 (Example)
이 섹션은 불완전해요. 이유: 예제 없음