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

◆ basic_regex() [6/8]

template<typename _Ch_type, typename _Rx_traits = regex_traits<_Ch_type>>
template<typename _Ch_traits, typename _Ch_alloc>
std::basic_regex< _Ch_type, _Rx_traits >::basic_regex ( const std::basic_string< _Ch_type, _Ch_traits, _Ch_alloc > & __s,
flag_type __f = ECMAScript )
inlineexplicit

Constructs a basic regular expression from the string s interpreted according to the flags in f.

Parameters
__sA string containing a regular expression.
__fFlags indicating the syntax rules and options.
Exceptions
regex_errorif __s is not a valid regular expression.

Definition at line 541 of file regex.h.

544 { _M_compile(__s.data(), __s.data() + __s.size(), __f); }
void _M_compile(const _Ch_type *__first, const _Ch_type *__last, flag_type __f)
Definition regex.h:828
A regular expression.
Definition regex.h:441