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/operator=/ below:

public member function

<system_error>

std::error_condition::operator=
template <class ErrorConditionEnum>  error_condition& operator= (ErrorConditionEnum e) noexcept;

Assign error condition

Calls make_error_condition to construct an error condition from e, whose value is assigned to the error_condition object.

This function only participates in overload resolution if is_error_condition_enum<ErrorConditionEnum>::value is true. Which is the case when errc is used as the ErrorConditionEnum type.

Member function assign can be used to assign a new value to the error_condition object using an integer value and a category, instead of an enum value.



Parameters
e
Error condition enum value of an enum type for which is_error_condition_enum has a value member with a value of true.
If this is a value of type errc, the object is set to the appropriate error condition value of the generic_category.

Return value*this
See also
errc
Generic error conditions (enum class)
error_condition::error_condition
Construct error_condition (public member function)
error_condition::assign
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