Namespaces
Variants
Actions

std::sub_match<BidirIt>::swap

From cppreference.com
< cpp‎ | regex‎ | sub match
 
 
 
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
 
 
void swap( sub_match& s ) noexcept(/* see below */);
(since C++11)

Exchanges the contents of two sub-match objects. Equivalent to

this->pair<BidirIt, BidirIt>::swap(s);
std::swap(matched, s.matched);

Contents

[edit] Parameters

s - a sub_match to swap with
Type requirements
-
BidirIt must meet the requirements of LegacySwappable.

[edit] Exceptions