A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://timsong-cpp.github.io/cppwp/n4659/re.results.const below:

[re.results.const]

31 Regular expressions library [re] 31.10 Class template match_­results [re.results] 31.10.1 match_­results constructors [re.results.const]

In all match_­results constructors, a copy of the Allocator argument shall be used for any memory allocation performed by the constructor or member functions during the lifetime of the object.

match_results(const Allocator& a = Allocator());

Effects: Constructs an object of class match_­results.

Postconditions: ready() returns false. size() returns 0.

match_results(const match_results& m);

Effects: Constructs an object of class match_­results, as a copy of m.

match_results(match_results&& m) noexcept;

Effects:  Move constructs an object of class match_­results from m satisfying the same postconditions as Table 134. Additionally, the stored Allocator value is move constructed from m.get_­allocator().

match_results& operator=(const match_results& m);

Effects: Assigns m to *this. The postconditions of this function are indicated in Table 134.

match_results& operator=(match_results&& m);

Effects:  Move-assigns m to *this. The postconditions of this function are indicated in Table 134.

Table

134

match_­results

assignment operator effects


Element Value ready() m.ready() size() m.size() str(n) m.str(n) for all integers n < m.size() prefix() m.prefix() suffix() m.suffix() (*this)[n] m[n] for all integers n < m.size() length(n) m.length(n) for all integers n < m.size() position(n) m.position(n) for all integers n < m.size()

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4