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
的内容。 flags() 和 mark_count() 等于 other.flags() 和 other.mark_count() 在赋值前的值。调用后, other
在合法但未指定的状态。f
。调用后 mark_count() 产生的子表达式中的有标记子表达式数。s
所指向的空终止字符串。s
所指向的 count
个字符序列。str
。[first, last)
中的字符。ilist
中的字符。目录 |
other | - | 要赋值的另一正则表达式 |
s | - | 指向要赋值的字符序列的指针 |
str | - | 要赋值的 string |
first, last | - | 要赋值的字符范围 |
ilist | - | 含要赋值的字符的 initializer_list |
类型要求 | ||
-
InputIt 必须满足 InputIterator 的要求。
|
*this
本节未完成 原因:暂无示例 |
赋值内容 (公开成员函数) |