##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::exception::operator=

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

exception& operator=( const exception& other ); |  |

Copy assignment operator. Assigns the contents of `other`

### [edit] Parameters

other | - | another exception to assign the contents of

### [edit] Exceptions

(none) | (until C++11)
`noexcept` specification: noexcept | (since C++11)

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/error/exception/operator%3D&oldid=64833"