30 Regular expressions library [re]

30.8 Class template basic_­regex [re.regex]

30.8.6 Non-member functions [re.regex.nonmemb]

template<class charT, class traits> void swap(basic_regex<charT, traits>& lhs, basic_regex<charT, traits>& rhs);
Effects: Calls lhs.swap(rhs).