cpp/regex/basic regex/assign

Assigns the contents to the regular expression.

@1@ Assigns the contents of. flags and mark_count are equivalent to the values of and  after the call.

@2@ Assigns the contents of using move semantics. flags and mark_count are equivalent to the values of and  before the assignment. After the call, is in a valid, but unspecified state.

@3-7@ Assigns a sequence of characters to the regular expression. The syntax flags are set to. mark_count returns the number of marked subexpressions within the resulting subexpression after the call.


 * @3@ Assigns a null-terminated string pointed to by.
 * @4@ Assigns a sequence of characters, pointed to by.
 * @5@ Assigns the string.
 * @6@ Assigns the characters in the range.
 * @7@ Assigns the characters in the initializer list.

Exceptions
@1@

@3-7@ std if the supplied regular expression is not valid. The object is not modified in that case.