Template:cpp/error/exception/member assignment what

{{member | {{small|std::{{{1}}}::}}operator{{=}} | {{dcl begin}} {{#if:{{{std|}}} {{dcl | since={{{std|}}} | 1= {{#explode:{{{1}}}|::|-1}}& operator=( const {{#explode:{{{1}}}|::|-1}}& other ) noexcept; }} {{dcl rev multi | until1=c++11 | dcl1= {{#explode:{{{1}}}|::|-1}}& operator=( const {{#explode:{{{1}}}|::|-1}}& other {{#if:{{{nomessage|}}}|) throw|)}}; {{#explode:{{{1}}}|::|-1}}& operator=( const {{#explode:{{{1}}}|::|-1}}& other ) noexcept; }} }} {{dcl end}}
 * dcl2=

Assigns the contents with those of {{c|other}}. {{#if:{{{std|}}} }}
 * If {{c|*this}} and {{c|other}} both have dynamic type {{tt|std::{{{1}}}}} then {{c|1=std::strcmp(what, other.what) == 0}} after assignment.
 * {{rev inl|since=c++11|If {{c|*this}} and {{c|other}} both have dynamic type {{tt|std::{{{1}}}}} then {{c|1=std::strcmp(what, other.what) == 0}} after assignment.}}

Return value
}}

{{member | {{small|std::{{{1}}}::}}what | {{dcl begin}} {{#if:{{{std|}}} {{dcl | since={{{std|}}} | virtual const char* what const noexcept; }} {{dcl rev multi | until1=c++11 | dcl1= virtual const char* what const throw; virtual const char* what const noexcept; }} }} {{dcl end}}
 * dcl2=

Returns the explanatory string.

Parameters
(none)

Return value
Pointer to a null-terminated string with explanatory information. The string is suitable for conversion and display as a std. The pointer is guaranteed to be valid at least until the exception object from which it is obtained is destroyed, or until a non-const member function (e.g. copy assignment operator) on the exception object is called.