std::basic_regex<CharT,Traits>::assign

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

# Return value

*this

# Example

This section is incompleteReason: no example

# See also