##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::nested_exception::operator=

From cppreference.com
< cpp‎ | error‎ | nested exception

nested_exception& operator=( const nested_exception& other ) = default; |  | (since C++11)

Replaces the stored exception with the one held in `other`.

### [edit] Parameters

other | - | nested exception to replace the contents with

### [edit] Return value

*this

### [edit] Exceptions

`noexcept` specification:
noexcept
Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/error/nested_exception/operator%3D&oldid=91365"
Category:

- unconditionally noexcept

Hidden categories:

- Pages with unreviewed unconditional noexcept template
- Pages with unreviewed noexcept template