| Localization library | |||||||||||||||||||||||||
| Regular expressions library(C++11) | |||||||||||||||||||||||||
| Formatting library(C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
| Classes | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
| Algorithms | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
| Iterators | ||||
(C++11) | ||||
(C++11) | ||||
| Exceptions | ||||
(C++11) | ||||
| Traits | ||||
(C++11) | ||||
| Constants | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
| Regex Grammar | ||||
(C++11) |
| Member functions | ||||
match_results::operator= | ||||
| State | ||||
| Element access | ||||
| Iterators | ||||
| Format | ||||
| Modifiers | ||||
| Non-member functions | ||||
(until C++20) | ||||
Defined in header <regex> | ||
match_results& operator=(const match_results& other); | (1) | |
match_results& operator=( match_results&& other)noexcept; | (2) | |
Assigns the contents.
Given the value ofother before the assignment asm and any integer in[0, m.size()) asn, when the assignment finishes, the following member functions should return the specified values:
| Member function | Value |
|---|---|
ready() | m.ready() |
size() | m.size() |
str(n) | m.str(n) |
prefix() | m.prefix() |
suffix() | m.suffix() |
operator[](n) | m[n] |
length(n) | m.length(n) |
position(n) | m.position(n) |
Contents |
| other | - | another match results object |
*this
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 2191 | C++11 | n could be negative in the postconditions | can only be non-negative |