Namespaces
Variants

std::regex_error:: operator=

From cppreference.net
Regular expressions library
Classes
(C++11)
Algorithms
Iterators
Exceptions
Traits
Constants
(C++11)
Regex Grammar
regex_error & operator = ( const regex_error & other ) noexcept ;
(自 C++11 起)

将内容赋值为 other 的内容。如果 * this other 都具有动态类型 std::regex_error ,则赋值后满足 std:: strcmp ( what ( ) , other. what ( ) ) == 0

参数

其他 - 用于赋值的另一个 regex_error 对象

返回值

* this

示例