public member function
<regex>

std::basic_regex::swap

void swap (basic_regex& rgx);
交换内容
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.

参数

rgx
Another basic_regex object of the same type.

返回值



另见