std::basic_regex<CharT,Traits>:: assign
|
basic_regex
&
assign
(
const
basic_regex
&
other
)
;
|
(1) | (自 C++11 起) |
|
basic_regex
&
assign
(
basic_regex
&&
other
)
noexcept
;
|
(2) | (自 C++11 起) |
|
basic_regex
&
assign
(
const
CharT
*
s,
flag_type f = std:: regex_constants :: ECMAScript ) ; |
(3) | (自 C++11 起) |
|
basic_regex
&
assign
(
const
CharT
*
ptr,
std::
size_t
count,
flag_type f = std:: regex_constants :: ECMAScript ) ; |
(4) | (自 C++11 起) |
|
template
<
class
ST,
class
SA
>
basic_regex
&
assign
(
const
std::
basic_string
<
CharT,ST,SA
>
&
str,
|
(5) | (自 C++11 起) |
|
template
<
class
InputIt
>
basic_regex
&
assign
(
InputIt first, InputIt last,
|
(6) | (自 C++11 起) |
|
basic_regex
&
assign
(
std::
initializer_list
<
CharT
>
ilist,
flag_type f = std:: regex_constants :: ECMAScript ) ; |
(7) | (自 C++11 起) |
将内容赋值给正则表达式。
[
first
,
last
)
内的字符进行赋值。
目录 |
参数
| other | - | 要分配的另一正则表达式 |
| s | - | 指向要分配的字符序列的指针 |
| str | - | 要分配的字符串 |
| first, last | - | 要分配的字符范围 |
| ilist | - | 包含要分配字符的初始化列表 |
| 类型要求 | ||
-
InputIt
必须满足
LegacyInputIterator
的要求。
|
||
返回值
* this
异常
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
赋值内容
(公开成员函数) |