A RetroSearch Logo

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

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../regex/basic_regex/../match_results/operator=.html below:

std::match_results<BidirIt,Alloc>::operator= - cppreference.com

match_results& operator=( const match_results& other );

(1)

match_results& operator=( match_results&& other ) noexcept;

(2)

Assigns the contents.

1) Copy assignment operator. Assigns the contents of other.

2) Move assignment operator. Assigns the contents of other using move semantics. other is in a valid, but unspecified state after the operation.

Given the value of other before the assignment as m and any integer in [​0​m.size()) as n, when the assignment finishes, the following member functions should return the specified values:

[edit] Parameters other - another match results object [edit] Return value

*this

[edit] Exceptions

1) May throw implementation-defined exceptions.

[edit] Defect reports

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

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