std::basic_regex<CharT,Traits>::assign
basic_regex&
assign(
const
basic_regex&
other );
|
(1) | (C++11 起) |
basic_regex&
assign(
basic_regex&&
that )
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, 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 起) |
赋值内容给正则表达式。
other
的内容。
flags() 和
mark_count()
等于 other.flags() 和 other.mark_count() 在赋值前的值。调用后,
other
在合法但未指定的状态。s
所指向的空终止字符串。
s
所指向的
count
个字符序列。str
。
[first, last)
中的字符。ilist
中的字符。参数
other | - | 要赋值的另一正则表达式 |
s | - | 指向要赋值的字符序列的指针 |
str | - | 要赋值的 string |
first, last | - | 要赋值的字符范围 |
ilist | - | 含要赋值的字符的 initializer_list |
类型要求 | ||
-InputIt
必须符合老式输入迭代器
(LegacyInputIterator)
的要求。
|
返回值
*this
异常
示例
本节未完成 原因:暂无示例 |
参阅
赋值内容 (公开成员函数) |