Defined in header <regex>  |  ||
|---|---|---|
 basic_regex& operator=( const basic_regex& other );  |  (1) | (since C++11) | 
 basic_regex& operator=( basic_regex&& other ) noexcept;  |  (2) | (since C++11) | 
 basic_regex& operator=( const CharT* ptr );  |  (3) | (since C++11) | 
 basic_regex& operator=( std::initializer_list<CharT> il );  |  (4) | (since C++11) | 
 template< class ST, class SA > basic_regex& operator=( const std::basic_string<CharT,ST,SA>& p );  |  (5) | (since C++11) | 
Assigns the contents.
other. Equivalent to assign(other);.other using move semantics. other is in valid, but unspecified state after the operation. Equivalent to assign(other);.ptr. Equivalent to assign(ptr);.il. Equivalent to assign(il);.p. Equivalent to assign(p);.| other | - | another regex object | 
| ptr | - | pointer to a null-terminated character string | 
| il | - | initializer list containing characters to assign | 
| p | - | string containing characters to assign | 
*this.
std::regex_error if the supplied regular expression is not valid. The object is not modified in that case.|  assigns the contents  (public member function)  | 
    © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
    https://en.cppreference.com/w/cpp/regex/basic_regex/operator%3D