A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/system_error/error_condition/assign/ below:

public member function

<system_error>

std::error_condition::assign
void assign (int val, const error_category& cat) noexcept;

Assign error condition

Assigns the error_condition object a value of val associated with the error_category cat.

The assignment operator (=) can be used to assign a new value to the error_condition object by using an enum value instead.



Parameters
val
A numerical value identifying an error condition.
cat
A reference to an error_category object.

Return value none

See also
error_condition::error_condition
Construct error_condition (public member function)
error_condition::operator=
Assign error condition (public member function)
error_condition::clear
Clear error condition (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4