libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ regex_match() [8/8]

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 )
inline

Indicates if there is a match between the regular expression e and a string.

Parameters
__s[IN] The string to match.
__re[IN] The regular expression.
__flags[IN] Controls how the regular expression is matched.
Return values
trueA match exists.
falseOtherwise.
Exceptions
anexception of type regex_error.

Definition at line 2417 of file regex.h.

2421 { return regex_match(__s.begin(), __s.end(), __re, __flags); }
bool 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)
Determines if there is a match between the regular expression e and all of the character sequence [fi...
Definition regex.h:2283
constexpr iterator end() noexcept
constexpr iterator begin() noexcept

References std::basic_string< _CharT, _Traits, _Alloc >::begin(), std::basic_string< _CharT, _Traits, _Alloc >::end(), std::regex_constants::match_default, and regex_match().

Here is the call graph for this function: