Namespaces
Variants
Views
Actions

std::error_code::assign

From cppreference.com
< cpp‎ | error‎ | error code
Revision as of 15:28, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 

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

<td >
void assign( int ec, const error_category& ecat );
</td>

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

Replaces the contents with error code ec and corresponding category ecat

Contents

Parameters

ec - platform-dependent error code enum to assign
ecat - error category corresponding to ec

Return value

(none)

Exceptions

noexcept specification:  
noexcept
  

See also

Template:cpp/error/error code/dcl list operator=