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

◆ operator=() [2/5]

template<typename _Ch_type, typename _Rx_traits = regex_traits<_Ch_type>>
basic_regex & std::basic_regex< _Ch_type, _Rx_traits >::operator= ( const _Ch_type * __p)
inline

Replaces a regular expression with a new one constructed from a C-style null-terminated string.

Parameters
__pA pointer to the start of a null-terminated C-style string containing a regular expression.

Definition at line 601 of file regex.h.

602 { return this->assign(__p); }
basic_regex & assign(const basic_regex &__rhs) noexcept
Definition regex.h:634
A regular expression.
Definition regex.h:441