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

◆ basic_regex() [3/8]

template<typename _Ch_type, typename _Rx_traits = regex_traits<_Ch_type>>
std::basic_regex< _Ch_type, _Rx_traits >::basic_regex ( const _Ch_type * __p,
std::size_t __len,
flag_type __f = ECMAScript )
inline

Constructs a basic regular expression from the sequence [p, p + len) interpreted according to the flags in f.

Parameters
__pA pointer to the start of a string containing a regular expression.
__lenThe length of the string containing the regular expression.
__fFlags indicating the syntax rules and options.
Exceptions
regex_errorif __p is not a valid regular expression.

Definition at line 509 of file regex.h.

511 {
514 }
#define __glibcxx_requires_string_len(_String, _Len)
Definition debug.h:82
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