31 Regular expressions library [re]

31.8 Class template basic_­regex [re.regex]

31.8.6 basic_­regex non-member functions [re.regex.nonmemb]

31.8.6.1 basic_­regex non-member swap [re.regex.nmswap]

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