libstdc++: Regular Expressions (original) (raw)
Functions | |
---|---|
template<typename _ForwardIterator > | |
std::basic_regex (_ForwardIterator, _ForwardIterator, regex_constants::syntax_option_type={}) -> basic_regex< typename iterator_traits< _ForwardIterator >::value_type > | |
template<typename _Bi_iter , typename _Alloc > | |
bool | operator== (const match_results< _Bi_iter, _Alloc > &__m1, const match_results< _Bi_iter, _Alloc > &__m2) |
template<typename _Ch_type , typename _Rx_traits > | |
void | swap (basic_regex< _Ch_type, _Rx_traits > &__lhs, basic_regex< _Ch_type, _Rx_traits > &__rhs) noexcept |
template<typename _Bi_iter , typename _Alloc > | |
void | swap (match_results< _Bi_iter, _Alloc > &__lhs, match_results< _Bi_iter, _Alloc > &__rhs) noexcept |
Matching, Searching, and Replacing | |
---|---|
template<typename _Bi_iter , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_match (_Bi_iter __s, _Bi_iter __e, match_results< _Bi_iter, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Bi_iter , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_match (_Bi_iter __first, _Bi_iter __last, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Ch_type , typename _Alloc , typename _Rx_traits > | |
bool | std::regex_match (const _Ch_type *__s, match_results< const _Ch_type *, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __f=regex_constants::match_default) |
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_match (const basic_string< _Ch_type, _Ch_traits, _Ch_alloc > &__s, match_results< typename basic_string< _Ch_type, _Ch_traits, _Ch_alloc >::const_iterator, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_match (const basic_string< _Ch_type, _Ch_traits, _Ch_alloc > &&, match_results< typename basic_string< _Ch_type, _Ch_traits, _Ch_alloc >::const_iterator, _Alloc > &, const basic_regex< _Ch_type, _Rx_traits > &, regex_constants::match_flag_type=regex_constants::match_default)=delete |
template<typename _Ch_type , class _Rx_traits > | |
bool | std::regex_match (const _Ch_type *__s, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __f=regex_constants::match_default) |
template<typename _Ch_traits , typename _Str_allocator , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_match (const basic_string< _Ch_type, _Ch_traits, _Str_allocator > &__s, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Bi_iter , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_search (_Bi_iter __s, _Bi_iter __e, match_results< _Bi_iter, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Bi_iter , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_search (_Bi_iter __first, _Bi_iter __last, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Ch_type , class _Alloc , class _Rx_traits > | |
bool | std::regex_search (const _Ch_type *__s, match_results< const _Ch_type *, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__e, regex_constants::match_flag_type __f=regex_constants::match_default) |
template<typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_search (const _Ch_type *__s, const basic_regex< _Ch_type, _Rx_traits > &__e, regex_constants::match_flag_type __f=regex_constants::match_default) |
template<typename _Ch_traits , typename _String_allocator , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_search (const basic_string< _Ch_type, _Ch_traits, _String_allocator > &__s, const basic_regex< _Ch_type, _Rx_traits > &__e, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_search (const basic_string< _Ch_type, _Ch_traits, _Ch_alloc > &__s, match_results< typename basic_string< _Ch_type, _Ch_traits, _Ch_alloc >::const_iterator, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__e, regex_constants::match_flag_type __f=regex_constants::match_default) |
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_search (const basic_string< _Ch_type, _Ch_traits, _Ch_alloc > &&, match_results< typename basic_string< _Ch_type, _Ch_traits, _Ch_alloc >::const_iterator, _Alloc > &, const basic_regex< _Ch_type, _Rx_traits > &, regex_constants::match_flag_type=regex_constants::match_default)=delete |
template<typename _Out_iter , typename _Bi_iter , typename _Rx_traits , typename _Ch_type , typename _St , typename _Sa > | |
_Out_iter | std::regex_replace (_Out_iter __out, _Bi_iter __first, _Bi_iter __last, const basic_regex< _Ch_type, _Rx_traits > &__e, const basic_string< _Ch_type, _St, _Sa > &__fmt, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Out_iter , typename _Bi_iter , typename _Rx_traits , typename _Ch_type > | |
_Out_iter | std::regex_replace (_Out_iter __out, _Bi_iter __first, _Bi_iter __last, const basic_regex< _Ch_type, _Rx_traits > &__e, const _Ch_type *__fmt, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Rx_traits , typename _Ch_type , typename _St , typename _Sa , typename _Fst , typename _Fsa > | |
basic_string< _Ch_type, _St, _Sa > | std::regex_replace (const basic_string< _Ch_type, _St, _Sa > &__s, const basic_regex< _Ch_type, _Rx_traits > &__e, const basic_string< _Ch_type, _Fst, _Fsa > &__fmt, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Rx_traits , typename _Ch_type , typename _St , typename _Sa > | |
basic_string< _Ch_type, _St, _Sa > | std::regex_replace (const basic_string< _Ch_type, _St, _Sa > &__s, const basic_regex< _Ch_type, _Rx_traits > &__e, const _Ch_type *__fmt, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Rx_traits , typename _Ch_type , typename _St , typename _Sa > | |
basic_string< _Ch_type > | std::regex_replace (const _Ch_type *__s, const basic_regex< _Ch_type, _Rx_traits > &__e, const basic_string< _Ch_type, _St, _Sa > &__fmt, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Rx_traits , typename _Ch_type > | |
basic_string< _Ch_type > | std::regex_replace (const _Ch_type *__s, const basic_regex< _Ch_type, _Rx_traits > &__e, const _Ch_type *__fmt, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _BiIter > | |
bool | operator== (const sub_match< _BiIter > &__lhs, const sub_match< _BiIter > &__rhs) |
template<typename _BiIter > | |
auto | operator (const sub_match< _BiIter > &__lhs, const sub_match< _BiIter > &__rhs) noexcept(__detail::__is_contiguous_iter< _BiIter >::value) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | operator== (const sub_match< _Bi_iter > &__lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Alloc > | |
auto | operator (const sub_match< _Bi_iter > &__lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Alloc > &__rhs) noexcept(__detail::__is_contiguous_iter< _Bi_iter >::value) |
template<typename _Bi_iter > | |
bool | operator== (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const *__rhs) |
template<typename _Bi_iter > | |
auto | operator (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const *__rhs) noexcept(__detail::__is_contiguous_iter< _Bi_iter >::value) |
template<typename _Bi_iter > | |
bool | operator== (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const &__rhs) |
template<typename _Bi_iter > | |
auto | operator (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const &__rhs) noexcept(__detail::__is_contiguous_iter< _Bi_iter >::value) |
template<typename _Ch_type , typename _Ch_traits , typename _Bi_iter > | |
basic_ostream< _Ch_type, _Ch_traits > & | operator<< (basic_ostream< _Ch_type, _Ch_traits > &__os, const sub_match< _Bi_iter > &__m) |
A facility for performing regular expression pattern matching.
Since
C++11
◆ cmatch
◆ cregex_iterator
◆ cregex_token_iterator
Token iterator for C-style NULL-terminated strings.
Definition at line 3099 of file regex.h.
◆ csub_match
Standard regex submatch over a C-style null-terminated string.
Definition at line 1078 of file regex.h.
◆ regex
Standard regular expressions.
Definition at line 879 of file regex.h.
◆ smatch
◆ sregex_iterator
◆ sregex_token_iterator
Token iterator for standard strings.
Definition at line 3102 of file regex.h.
◆ ssub_match
Standard regex submatch over a standard string.
Definition at line 1081 of file regex.h.
◆ wcmatch
◆ wcregex_iterator
◆ wcregex_token_iterator
Token iterator for C-style NULL-terminated wide strings.
Definition at line 3106 of file regex.h.
◆ wcsub_match
Regex submatch over a C-style null-terminated wide string.
Definition at line 1085 of file regex.h.
◆ wregex
Standard wide-character regular expressions.
Definition at line 883 of file regex.h.
◆ wsmatch
◆ wsregex_iterator
◆ wsregex_token_iterator
Token iterator for standard wide-character strings.
Definition at line 3109 of file regex.h.
◆ wssub_match
Regex submatch over a standard wide string.
Definition at line 1088 of file regex.h.
◆ operator() [1/4]
template<typename _Bi_iter , typename _Ch_traits , typename _Alloc >
auto operator<=> ( const sub_match< _Bi_iter > & __lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Alloc > & __rhs ) | related |
---|
Three-way comparison of a regular expression submatch and a string.
Parameters
__lhs | A regular expression submatch. |
---|---|
__rhs | A string. |
Returns
A value indicating whether __lhs
is less than, equal to, greater than, or incomparable with __rhs
.
Definition at line 1287 of file regex.h.
◆ operator() [2/4]
template<typename _Bi_iter >
auto operator<=> ( const sub_match< _Bi_iter > & __lhs, typename iterator_traits< _Bi_iter >::value_type const & __rhs ) | related |
---|
Three-way comparison of a regular expression submatch and a character.
Parameters
__lhs | A regular expression submatch. |
---|---|
__rhs | A character. |
Returns
A value indicating whether __lhs
is less than, equal to, greater than, or incomparable with __rhs
.
Definition at line 1628 of file regex.h.
References std::__addressof().
◆ operator() [3/4]
template<typename _Bi_iter >
auto operator<=> ( const sub_match< _Bi_iter > & __lhs, typename iterator_traits< _Bi_iter >::value_type const * __rhs ) | related |
---|
Three-way comparison of a regular expression submatch and a C string.
Parameters
__lhs | A regular expression submatch. |
---|---|
__rhs | A null-terminated string. |
Returns
A value indicating whether __lhs
is less than, equal to, greater than, or incomparable with __rhs
.
Definition at line 1455 of file regex.h.
◆ operator() [4/4]
template<typename _BiIter >
auto operator<=> ( const sub_match< _BiIter > & __lhs, const sub_match< _BiIter > & __rhs ) | related |
---|
Three-way comparison of two regular expression submatches.
Parameters
__lhs | First regular expression submatch. |
---|---|
__rhs | Second regular expression submatch. |
Returns
A value indicating whether __lhs
is less than, equal to, greater than, or incomparable with __rhs
.
Definition at line 1115 of file regex.h.
◆ operator<<()
template<typename _Ch_type , typename _Ch_traits , typename _Bi_iter >
Inserts a matched string into an output stream.
Parameters
__os | The output stream. |
---|---|
__m | A submatch string. |
Returns
the output stream with the submatch string inserted.
Definition at line 1628 of file regex.h.
◆ operator==() [1/5]
template<typename _Bi_iter , typename _Alloc >
Compares two match_results for equality.
Returns
true if the two objects refer to the same match, false otherwise.
Definition at line 2186 of file regex.h.
References std::match_results< _Bi_iter, _Alloc >::begin(), std::match_results< _Bi_iter, _Alloc >::empty(), std::match_results< _Bi_iter, _Alloc >::end(), std::match_results< _Bi_iter, _Alloc >::prefix(), std::match_results< _Bi_iter, _Alloc >::ready(), std::match_results< _Bi_iter, _Alloc >::size(), and std::match_results< _Bi_iter, _Alloc >::suffix().
◆ operator==() [2/5]
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc >
bool operator== ( const sub_match< _Bi_iter > & __lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > & __rhs ) | related |
---|
Tests the equivalence of a regular expression submatch and a string.
Parameters
__lhs | A regular expression submatch. |
---|---|
__rhs | A string. |
Returns
true if __lhs is equivalent to __rhs, false otherwise.
Definition at line 1274 of file regex.h.
◆ operator==() [3/5]
template<typename _Bi_iter >
Tests the equivalence of a regular expression submatch and a character.
Parameters
__lhs | A regular expression submatch. |
---|---|
__rhs | A character. |
Returns
true if __lhs is equivalent to __rhs, false otherwise.
Definition at line 1613 of file regex.h.
References std::__addressof().
◆ operator==() [4/5]
template<typename _Bi_iter >
Tests the equivalence of a regular expression submatch and a C string.
Parameters
__lhs | A regular expression submatch. |
---|---|
__rhs | A null-terminated string. |
Returns
true if __lhs is equivalent to __rhs, false otherwise.
Definition at line 1441 of file regex.h.
References std::sub_match< _BiIter >::compare().
◆ operator==() [5/5]
template<typename _BiIter >
Tests the equivalence of two regular expression submatches.
Parameters
__lhs | First regular expression submatch. |
---|---|
__rhs | Second regular expression submatch. |
Returns
true if __lhs is equivalent to __rhs, false otherwise.
Definition at line 1103 of file regex.h.
References std::sub_match< _BiIter >::compare().
◆ regex_match() [1/7]
template<typename _Bi_iter , typename _Ch_type , typename _Rx_traits >
Indicates if there is a match between the regular expression e
and all of the character sequence [first, last).
Parameters
__first | Beginning of the character sequence to match. |
---|---|
__last | One-past-the-end of the character sequence to match. |
__re | The regular expression. |
__flags | Controls how the regular expression is matched. |
Return values
true | A match exists. |
---|---|
false | Otherwise. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2288 of file regex.h.
References std::regex_match().
◆ regex_match() [2/7]
template<typename _Bi_iter , typename _Alloc , typename _Ch_type , typename _Rx_traits >
Determines if there is a match between the regular expression e
and all of the character sequence [first, last).
Parameters
__s | Start of the character sequence to match. |
---|---|
__e | One-past-the-end of the character sequence to match. |
__m | The match results. |
__re | The regular expression. |
__flags | Controls how the regular expression is matched. |
Return values
true | A match exists. |
---|---|
false | Otherwise. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2261 of file regex.h.
Referenced by std::regex_match(), std::regex_match(), std::regex_match(), std::regex_match(), and std::regex_match().
◆ regex_match() [3/7]
template<typename _Ch_type , class _Rx_traits >
Indicates if there is a match between the regular expression e
and a C-style null-terminated string.
Parameters
__s | The C-style null-terminated string to match. |
---|---|
__re | The regular expression. |
__f | Controls how the regular expression is matched. |
Return values
true | A match exists. |
---|---|
false | Otherwise. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2373 of file regex.h.
References std::regex_match().
◆ regex_match() [4/7]
template<typename _Ch_type , typename _Alloc , typename _Rx_traits >
Determines if there is a match between the regular expression e
and a C-style null-terminated string.
Parameters
__s | The C-style null-terminated string to match. |
---|---|
__m | The match results. |
__re | The regular expression. |
__f | Controls how the regular expression is matched. |
Return values
true | A match exists. |
---|---|
false | Otherwise. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2313 of file regex.h.
References std::regex_match().
◆ regex_match() [5/7]
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits >
Prevent unsafe attempts to get match_results from a temporary string.
◆ regex_match() [6/7]
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits >
◆ regex_match() [7/7]
template<typename _Ch_traits , typename _Str_allocator , typename _Ch_type , typename _Rx_traits >
◆ regex_replace() [1/6]
Search for a regular expression within a range for multiple times, and replace the matched parts through filling a format C-string.
Parameters
__out | [OUT] The output iterator. |
---|---|
__first | [IN] The start of the string to search. |
__last | [IN] One-past-the-end of the string to search. |
__e | [IN] The regular expression to search for. |
__fmt | [IN] The format C-string. |
__flags | [IN] Search and replace policy flags. |
Returns
__out
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2602 of file regex.h.
◆ regex_replace() [2/6]
template<typename _Out_iter , typename _Bi_iter , typename _Rx_traits , typename _Ch_type , typename _St , typename _Sa >
◆ regex_replace() [3/6]
template<typename _Rx_traits , typename _Ch_type >
Search for a regular expression within a C-string for multiple times, and replace the matched parts through filling a format C-string.
Parameters
__s | [IN] The C-string to search and replace. |
---|---|
__e | [IN] The regular expression to search for. |
__fmt | [IN] The format C-string. |
__flags | [IN] Search and replace policy flags. |
Returns
The string after replacing.
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2706 of file regex.h.
References std::back_inserter(), and std::regex_replace().
◆ regex_replace() [4/6]
template<typename _Rx_traits , typename _Ch_type , typename _St , typename _Sa >
Search for a regular expression within a C-string for multiple times, and replace the matched parts through filling a format string.
Parameters
__s | [IN] The C-string to search and replace. |
---|---|
__e | [IN] The regular expression to search for. |
__fmt | [IN] The format string. |
__flags | [IN] Search and replace policy flags. |
Returns
The string after replacing.
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2680 of file regex.h.
References std::back_inserter(), and std::regex_replace().
◆ regex_replace() [5/6]
template<typename _Rx_traits , typename _Ch_type , typename _St , typename _Sa >
◆ regex_replace() [6/6]
template<typename _Rx_traits , typename _Ch_type , typename _St , typename _Sa , typename _Fst , typename _Fsa >
basic_string< _Ch_type, _St, _Sa > std::regex_replace ( const basic_string< _Ch_type, _St, _Sa > & __s, const basic_regex< _Ch_type, _Rx_traits > & __e, const basic_string< _Ch_type, _Fst, _Fsa > & __fmt, regex_constants::match_flag_type __flags = regex_constants::match_default ) | inline |
---|
◆ regex_search() [1/7]
template<typename _Bi_iter , typename _Ch_type , typename _Rx_traits >
Searches for a regular expression within a range.
Parameters
__first | [IN] The start of the string to search. |
---|---|
__last | [IN] One-past-the-end of the string to search. |
__re | [IN] The regular expression to search for. |
__flags | [IN] Search policy flags. |
Return values
true | A match was found within the string. |
---|---|
false | No match was found within the string. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2441 of file regex.h.
References std::regex_search().
◆ regex_search() [2/7]
template<typename _Bi_iter , typename _Alloc , typename _Ch_type , typename _Rx_traits >
Searches for a regular expression within a range.
Parameters
__s | [IN] The start of the string to search. |
---|---|
__e | [IN] One-past-the-end of the string to search. |
__m | [OUT] The match results. |
__re | [IN] The regular expression to search for. |
__flags | [IN] Search policy flags. |
Return values
true | A match was found within the string. |
---|---|
false | No match was found within the string, the content of m is undefined. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2418 of file regex.h.
Referenced by std::regex_iterator< _Bi_iter, _Ch_type, _Rx_traits >::regex_iterator(), std::regex_iterator< _Bi_iter, _Ch_type, _Rx_traits >::operator++(), std::regex_search(), std::regex_search(), std::regex_search(), std::regex_search(), and std::regex_search().
◆ regex_search() [3/7]
template<typename _Ch_type , typename _Rx_traits >
Searches for a regular expression within a C-string.
Parameters
__s | [IN] The C-string to search. |
---|---|
__e | [IN] The regular expression to search for. |
__f | [IN] Search policy flags. |
Return values
true | A match was found within the string. |
---|---|
false | No match was found within the string. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2483 of file regex.h.
References std::regex_search().
◆ regex_search() [4/7]
template<typename _Ch_type , class _Alloc , class _Rx_traits >
Searches for a regular expression within a C-string.
Parameters
__s | [IN] A C-string to search for the regex. |
---|---|
__m | [OUT] The set of regex matches. |
__e | [IN] The regex to search for in s. |
__f | [IN] The search flags. |
Return values
true | A match was found within the string. |
---|---|
false | No match was found within the string, the content of m is undefined. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2464 of file regex.h.
References std::regex_search().
◆ regex_search() [5/7]
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits >
Prevent unsafe attempts to get match_results from a temporary string.
◆ regex_search() [6/7]
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits >
◆ regex_search() [7/7]
template<typename _Ch_traits , typename _String_allocator , typename _Ch_type , typename _Rx_traits >
Searches for a regular expression within a string.
Parameters
__s | [IN] The string to search. |
---|---|
__e | [IN] The regular expression to search for. |
__flags | [IN] Search policy flags. |
Return values
true | A match was found within the string. |
---|---|
false | No match was found within the string. |
Exceptions
an | exception of type regex_error. |
---|
Definition at line 2502 of file regex.h.
References std::regex_search().
◆ swap() [1/2]
template<typename _Ch_type , typename _Rx_traits >
void swap ( basic_regex< _Ch_type, _Rx_traits > & __lhs, basic_regex< _Ch_type, _Rx_traits > & __rhs ) | related |
---|
Swaps the contents of two regular expression objects.
Parameters
__lhs | First regular expression. |
---|---|
__rhs | Second regular expression. |
Definition at line 896 of file regex.h.
◆ swap() [2/2]
template<typename _Bi_iter , typename _Alloc >
Swaps two match results.
Parameters
__lhs | A match result. |
---|---|
__rhs | A match result. |
The contents of the two match_results objects are swapped.