Files
2025-10-25 03:02:53 +03:00

4.5 KiB

[re.results.const]

28 Text processing library [text]

28.6 Regular expressions library [re]

28.6.9 Class template match_results [re.results]

28.6.9.2 Constructors [re.results.const]

1

#

Table 122 lists the postconditions ofmatch_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);

2

#

Effects: The stored Allocator value is constructed from a.

3

#

Postconditions: ready() returns false.

size() returns 0.

🔗

match_results(const match_results& m); match_results(const match_results& m, const Allocator& a);

4

#

Effects: For the first form, the stored Allocator value is obtained as specified in [container.reqmts].

For the second form, the stored Allocator value is constructed from a.

5

#

Postconditions: As specified in Table 122.

🔗

match_results(match_results&& m) noexcept; match_results(match_results&& m, const Allocator& a);

6

#

Effects: For the first form, the stored Allocator value is move constructed from m.get_allocator().

For the second form, the stored Allocator value is constructed from a.

7

#

Postconditions: As specified in Table 122.

8

#

Throws: The second form throws nothing ifa == m.get_allocator() is true.

🔗

match_results& operator=(const match_results& m);

9

#

Postconditions: As specified in Table 122.

🔗

match_results& operator=(match_results&& m);

10

#

Postconditions: As specified in Table 122.

Table 122 — 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()