[re.regex.swap] (original) (raw)
28 Text processing library [text]
28.6 Regular expressions library [re]
28.6.7 Class template basic_regex [re.regex]
28.6.7.6 Swap [re.regex.swap]
void swap(basic_regex& e);
Effects: Swaps the contents of the two regular expressions.
Postconditions: *this contains the regular expression that was in e, e contains the regular expression that was in *this.
Complexity: Constant time.