[re.regex.nonmemb]

# 28 Text processing library [[text]](./#text)

## 28.6 Regular expressions library [[re]](re#regex.nonmemb)

### 28.6.7 Class template basic_regex [[re.regex]](re.regex#nonmemb)

#### 28.6.7.7 Non-member functions [re.regex.nonmemb]

[ð](#lib:basic_regex,swap)

`template<class charT, class traits>
  void swap(basic_regex<charT, traits>& lhs, basic_regex<charT, traits>& rhs);
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L10827)

*Effects*: Calls lhs.swap(rhs)[.](#1.sentence-1)
