Namespaces
Variants
Views
Actions

std::error_code::assign

From cppreference.com
< cpp‎ | error‎ | error code
Revision as of 15:33, 1 July 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 
void assign( int ec, const error_category& ecat );
(since C++11)

Replaces the contents with error code ec and corresponding category ecat.

Contents

[edit] Parameters

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

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  
noexcept
  

[edit] See also

assigns another error code
(public member function) [edit]