Localization library | |||||||||||||||||||||||||
Regular expressions library(C++11) | |||||||||||||||||||||||||
Formatting library(C++20) | |||||||||||||||||||||||||
Null-terminated sequence utilities | |||||||||||||||||||||||||
Byte strings | |||||||||||||||||||||||||
Multibyte strings | |||||||||||||||||||||||||
Wide strings | |||||||||||||||||||||||||
Primitive numeric conversions | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Text encoding identifications | |||||||||||||||||||||||||
|
Classes | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Algorithms | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Iterators | ||||
(C++11) | ||||
(C++11) | ||||
Exceptions | ||||
(C++11) | ||||
Traits | ||||
(C++11) | ||||
Constants | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
Regex Grammar | ||||
(C++11) |
Member Functions | ||||
basic_regex::assign | ||||
Observers | ||||
Locale | ||||
Modifiers | ||||
Constants | ||||
Non-member Functions | ||||
Deduction guides(C++17) |
basic_regex& assign(const basic_regex& other); | (1) | (since C++11) |
basic_regex& assign( basic_regex&& other)noexcept; | (2) | (since C++11) |
basic_regex& assign(const CharT* s, flag_type f=std::regex_constants::ECMAScript); | (3) | (since C++11) |
basic_regex& assign(const CharT* ptr,std::size_t count, flag_type f=std::regex_constants::ECMAScript); | (4) | (since C++11) |
template<class ST,class SA> basic_regex& assign(conststd::basic_string<CharT,ST,SA>& str, | (5) | (since C++11) |
template<class InputIt> basic_regex& assign( InputIt first, InputIt last, | (6) | (since C++11) |
basic_regex& assign(std::initializer_list<CharT> ilist, flag_type f=std::regex_constants::ECMAScript); | (7) | (since C++11) |
Assigns the contents to the regular expression.
f
.mark_count() returns the number of marked subexpressions within the resulting subexpression after the call.[
first,
last)
.Contents |
other | - | another regular expression to assign |
s | - | pointer to a character sequence to assign |
str | - | string to assign |
first, last | - | the range of characters to assign |
ilist | - | initializer list containing characters to assign |
Type requirements | ||
-InputIt must meet the requirements ofLegacyInputIterator. |
*this
This section is incomplete Reason: no example |
assigns the contents (public member function)[edit] |