std::basic_regex::operator=
来自cppreference.com
< cpp | regex | basic regex
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <regex> 中定义
|
||
| basic_regex& operator=( const basic_regex& other ); |
(1) | (since C++11) |
| basic_regex& operator=( basic_regex&& other ); |
(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) |
分配的内容.....
1)
复制赋值操作者。分配
other的内容。相当于assign(other);.原文:
Copy assignment operator. Assigns the contents of
other. Equivalent to assign(other);.2)
将赋值运算符。分配
other使用移动语义的内容。 other后的操作是有效的,但是未指定状态。相当于assign(other);.原文:
Move assignment operator. Assigns the contents of
other using move semantics. other is in valid, but unspecified state after the operation. Equivalent to assign(other);.3)
分配一个空结束的字符串所指向的
ptr。相当于assign(ptr);.原文:
Assigns a null-terminated character string pointed to by
ptr. Equivalent to assign(ptr);.4)
分配初始化列表中的
il包含的字符。相当于assign(il);.原文:
Assigns characters contained in initializer list
il. Equivalent to assign(il);.5)
分配内容的字符串
p。相当于assign(p);.原文:
Assigns the contents of the string
p. Equivalent to assign(p);.目录 |
[编辑] 参数
| other | - | 另一个正则表达式对象
|
| ptr | - | 指向一个空结束的字符串的指针
原文: pointer to a null-terminated character string |
| il | - | 初始化列表中包含的字符来指定
原文: initializer list containing characters to assign |
| p | - | 字符串包含的字符来指定
原文: string containing characters to assign |
[编辑] 返回值
*this.
[编辑] 例外
1)
(无)
2)
3-5)
(无)
[编辑] 另请参阅
| 分配的内容 (公共成员函数) |