A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/exception/exception/operator=/ below:

public member function

<exception>

std::exception::operator=
exception& operator= (const exception& e) throw();
exception& operator= (const exception& e) noexcept;

Copy exception

Copies an exception object.

The effects of calling member

what

after the assignment depend on the particular library implementation.


Every exception within the C++ standard library (including this) has, at least, a copy assignment operator overload that preserves the string representation returned by member

what

when the dynamic types match.



Parameters
e
Another exception object.

Exception safetyNo-throw guarantee: this member function never throws exceptions.
This also applies to all derived classes within the C++ standard library.

See also
exception::exception
Construct exception (public member function)
exception::what
Get string identifying exception (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4