32 Regular expressions library [re]

32.9 Class template match_­results [re.results]

32.9.2 Constructors [re.results.const]

Table 142 lists the postconditions of match_­results copy/move constructors and copy/move assignment operators.
For move operations, the results of the expressions depending on the parameter m denote the values they had before the respective function calls.
explicit match_results(const Allocator& a);
Postconditions: ready() returns false.
size() returns 0.
match_results(const match_results& m);
Postconditions: As specified in Table 142.
match_results(match_results&& m) noexcept;
Effects: The stored Allocator value is move constructed from m.get_­allocator().
Postconditions: As specified in Table 142.
match_results& operator=(const match_results& m);
Postconditions: As specified in Table 142.
match_results& operator=(match_results&& m);
Postconditions: As specified in Table 142.
Table 142: match_­results copy/move operation postconditions [tab:re.results.const]
Element
Value
ready()
m.ready()
size()
m.size()
str(n)
m.str(n) for all non-negative integers n < m.size()
prefix()
m.prefix()
suffix()
m.suffix()
(*this)[n]
m[n] for all non-negative integers n < m.size()
length(n)
m.length(n) for all non-negative integers n < m.size()
position(n)
m.position(n) for all non-negative integers n < m.size()