std::error_code::assign

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

# Return value

(none)

# See also