30 Regular expressions library [re]

30.8 Class template basic_­regex [re.regex]

30.8.5 Swap [re.regex.swap]

void swap(basic_regex& e);
Effects: Swaps the contents of the two regular expressions.
Ensures: *this contains the regular expression that was in e, e contains the regular expression that was in *this.
Complexity: Constant time.