std::basic_regex<CharT,Traits>::assign
Min standard notice:
Assigns the contents to the regular expression.
# Declarations
basic_regex& assign( const basic_regex& other );
(since C++11)
basic_regex& assign( basic_regex&& other ) noexcept;
(since C++11)
basic_regex& assign( const CharT* s,
flag_type f = std::regex_constants::ECMAScript );
(since C++11)
basic_regex& assign( const CharT* ptr, std::size_t count,
flag_type f = std::regex_constants::ECMAScript );
(since C++11)
template< class ST, class SA >
basic_regex& assign( const std::basic_string<CharT,ST,SA>& str,
flag_type f = std::regex_constants::ECMAScript );
(since C++11)
template< class InputIt >
basic_regex& assign( InputIt first, InputIt last,
flag_type f = std::regex_constants::ECMAScript );
(since C++11)
basic_regex& assign( std::initializer_list<CharT> ilist,
flag_type f = std::regex_constants::ECMAScript );
(since C++11)
# Parameters
other: another regular expression to assigns: pointer to a character sequence to assignstr: string to assignfirst, last: the range of characters to assignilist: initializer list containing characters to assign
# Return value
*this
# Example
This section is incompleteReason: no example