Namespaces
Variants
Views
Actions

std::error_condition::operator=

From cppreference.com
< cpp‎ | error‎ | error condition
Revision as of 05:48, 2 December 2012 by P12 (Talk | contribs)

 
 
 
 
 

Template:ddcl list begin <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
error_condition& operator=( const error_condition& other );
</td>

<td > (1) </td> <td > (since C++11)
(implicitly declared) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
template< class ErrorConditionEnum >
error_condition& operator=( ErrorConditionEnum e );
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Assigns contents to an error condition.

1) Copy assignment operator. Assigns the contents of other.
2) Assigns error condition for enum e. Effectively calls Template:rlpf. Does not participate in the overload resolution unless is_error_condition_enum<ErrorConditionEnum>::value is true.

Parameters

other - another error condition to initialize with
e - error condition enum

Return value

*this.

Exceptions

noexcept specification:  
noexcept