public member function

std::basic_regex::swap

<regex>
void swap (basic_regex& rgx);
Swap content
Exchanges the regular expression in the basic_regex object by the regular expression in rgx. All properties are exchanged.

This is done in constant time by exchanging internal pointers.

Parameters

rgx
Another basic_regex object of the same type.

Return value

none

See also