| 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::match_results | ||||
| State | ||||
| Element access | ||||
| Iterators | ||||
| Format | ||||
| Modifiers | ||||
| Non-member functions | ||||
(until C++20) | ||||
match_results(): match_results(Allocator()){} | (1) | |
explicit match_results(const Allocator& a); | (2) | |
match_results(const match_results& rhs); | (3) | |
match_results(const match_results& rhs,const Allocator& a); | (4) | |
match_results( match_results&& rhs)noexcept; | (5) | |
match_results( match_results&& rhs,const Allocator& a); | (6) | |
[0, m.size()) asn, when the construction 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 |
| a | - | allocator to use for all memory allocations of this container |
| rhs | - | anothermatch_results to use as source to initialize thematch_results with |
| This section is incomplete Reason: no example |
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 of overloads(3-6) | can only be non-negative |
| LWG 2195 | C++11 | the constructors required byAllocatorAwareContainer were missing | added |
| P0935R0 | C++11 | default constructor was explicit | made implicit |