Search:
Reference
<regex>
basic_regex
swap
public member function
<regex>
std::
basic_regex
::swap
void swap (basic_regex& rgx);
Swap content
Exchanges the regular expression in the
basic_regex
object by the regular expression in
rgx
. All properties are exchanged.
This is done in constant time by exchanging internal pointers.
Parameters
rgx
Another
basic_regex
object of the same type.
Return value
none
See also
basic_regex::assign
Assign regular expression
(public member function)
swap (basic_regex)
Exchanges the contents of two regex
(function template )
C++
Information
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfenv> (fenv.h)
<cfloat> (float.h)
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctgmath> (tgmath.h)
<ctime> (time.h)
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
<array>
<deque>
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
<unordered_map>
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
<atomic>
<condition_variable>
<future>
<mutex>
<thread>
Other:
<algorithm>
<bitset>
<chrono>
<codecvt>
<complex>
<exception>
<functional>
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<random>
<ratio>
<regex>
<stdexcept>
<string>
<system_error>
<tuple>
<typeindex>
<typeinfo>
<type_traits>
<utility>
<valarray>
<regex>
ECMAScript syntax
regex_constants
classes (basic):
basic_regex
match_results
regex_error
regex_iterator
regex_token_iterator
regex_traits
sub_match
classes (template instantiations):
cmatch
csub_match
regex
smatch
ssub_match
wcmatch
wcsub_match
wregex
wsmatch
wssub_match
functions:
regex_replace
regex_match
regex_search
basic_regex
basic_regex::basic_regex
basic_regex::~basic_regex
member functions:
basic_regex::assign
basic_regex::flags
basic_regex::getloc
basic_regex::imbue
basic_regex::mark_count
basic_regex::operator=
basic_regex::swap
non-member functions:
swap (basic_regex)