Assigns the contents to the regular expression.
other
. flags()
and mark_count()
are equivalent to the values of other.flags()
and other.mark_count()
after the call.other
using move semantics. flags()
and mark_count()
are equivalent to the values of other.flags()
and other.mark_count()
before the assignment. After the call, other
is in a valid, but unspecified state.f
. mark_count()
returns the number of marked subexpressions within the resulting subexpression after the call.s
.count
characters, pointed to by s
.str
.[first, last)
.ilist
.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 of InputIterator. |
*this
.
std::regex_error
if the supplied regular expression is not valid. The object is not modified in that case. assigns the contents (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/regex/basic_regex/assign