命名空间
变体
操作

std::regex_error::operator=

来自 cppreference.cn
< cpp‎ | regex‎ | regex error
regex_error& operator=( const regex_error& other ) noexcept;
(始于 C++11)

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

[编辑] 参数

other - 要赋值的另一个 regex_error 对象

[编辑] 返回值

*this

[编辑] 示例