##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::match_results::swap

From cppreference.com
< cpp‎ | regex‎ | match results

void swap( match_results& other ); |  | (since C++11)

Exchanges the shared states of two `match_results` objects.

### [edit] Parameters

other | - | the `match_results` to swap with

### [edit] Return value

(none)

### [edit] Exceptions

`noexcept` specification:
noexcept

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

std::swap(std::match_results) (C++11) | specializes the `std::swap()` algorithm (function template) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/regex/match_results/swap&oldid=63418"
Category:

- Todo no example