std::match_...s::operator=(3)
okay so bestie, this is std::match_...s::operator=(3) from the C++ Standard Libary manual β manual name folded in right here, and we are about to understand assignment like itβs the group chat π
π NAME π
std::match_results::operator=-std::match_results::operator=β thatβs the name, no cap β¨
β¨ Synopsis β¨
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. thatβs the whole assignment vibe π
- Copy assignment operator. Assigns the contents of
other. - Move assignment operator. Assigns the contents of
otherusing move semantics.
Also: other is in a valid, but unspecified state after the operation. valid but unspecified is the standard wording, periodt π
πΈ Parameters πΈ
otherβ another match results object. thatβs the whole parameter list, and it ate π
π¦ Return value π¦
*this β yes, it returns itself. main character energy, honestly π
π Exceptions π
- May throw implementation-defined exceptions.
only overload (1) has this exception note. overload (2) is the noexcept one in the synopsis, so keep that distinction, bestie π
source/version drop: http://cppreference.com, dated 2024.06.10 β thatβs the footer tea, signed with a sparkle π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms