Namespaces
Variants
Views
Actions

std::error_condition::assign

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 

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

<td >
void assign( int val, const error_category& cat );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Assigns contents to an error condition. Sets the error code to val and error category to cat.

Parameters

val - error code
cat - error category

Return value

(none)

Exceptions

noexcept specification:  
noexcept