Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::regex_error::operator=

Assigns the contents with those of other. If *this and other both have dynamic type std::regex_error then std::strcmp(what(), other.what()) == 0 after assignment.

NotebookLM
regex_error& operator=( const regex_error& other ) noexcept;
(since C++11)

Assigns the contents with those of other. If *this and other both have dynamic type std::regex_error then std::strcmp(what(), other.what()) == 0 after assignment.

Parameters

other - another regex_error object to assign with

Return value

*this

Example

This section is incomplete
Reason: no example

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.