std::error_code::assign
Min standard notice:
Replaces the contents with error code value val and corresponding category cat.
# Declarations
void assign( int val, const error_category& cat ) noexcept;
(since C++11)
# Parameters
val: platform-dependent error code value to assigncat: error category corresponding to val
# Return value
(none)