std::basic_regex<CharT,Traits>::operator=
来自cppreference.com
                    
                                        
                    < cpp | regex | basic regex
                    
                                                            
                    |   在标头  <regex> 定义
  | 
||
|   basic_regex& operator=( const basic_regex& other );  | 
(1) | (C++11 起) | 
|   basic_regex& operator=( basic_regex&& other ) noexcept;  | 
(2) | (C++11 起) | 
|   basic_regex& operator=( const CharT* ptr );  | 
(3) | (C++11 起) | 
|   basic_regex& operator=( std::initializer_list<CharT> il );  | 
(4) | (C++11 起) | 
|   template< class ST, class SA > basic_regex& operator=( const std::basic_string<CharT,ST,SA>& p );  | 
(5) | (C++11 起) | 
赋值内容。
1) 复制赋值运算符。赋值 
other 的内容。等价于 assign(other); 。2) 移动赋值运算符。用移动语义赋值 
other 的内容。操作后 other 在合法但未指定的状态。等价于 assign(other); 。3) 赋值 
ptr 所指向的空终止字符串。等价于 assign(ptr); 。4) 赋值 initializer_list 
il 中含有的字符。等价于 assign(il); 。5) 赋值 string 
p 的内容。等价于 assign(p); 。参数
| other | - | 另一 regex 对象 | 
| ptr | - | 指向空终止字符串的指针 | 
| il | - | 含要赋值的字符的 initializer_list | 
| p | - | 含要赋值的字符的 string | 
返回值
*this 。
异常
1) 可能会抛出由实现定义的异常。
3-5) 若提供的正则表达式非法则抛出 std::regex_error 。该情况下不修改对象。
参阅
|   赋值内容  (公开成员函数)  |