W3cubDocs

/C++

std::match_results::operator=

Defined in header <regex>
match_results& operator=( const match_results& other );
(1) (since C++11)
match_results& operator=( match_results&& other ) noexcept;
(2) (since C++11)

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 valid, but unspecified state after the operation.

Parameters

other - another match results object

Return value

*this.

Exceptions

1) (none)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/regex/match_results/operator=