std::error_condition::operator=

From cppreference.com
 
 
Utilities library
Type support (basic types, RTTI, type traits)
Dynamic memory management
Error handling
Program utilities
Variadic functions
Date and time
Function objects
(C++11)
Relational operators
Optional and any
(C++17)
(C++17)
Pairs and tuples
(C++11)
(C++17)
Swap, forward and move
(C++14)
(C++11)
(C++11)
Type operations
(C++11)
(C++17)
 
 
 
error_condition& operator=( const error_condition& other );
(1) (since C++11)
(implicitly declared)
template< class ErrorConditionEnum >
error_condition& operator=( ErrorConditionEnum e );
(2) (since C++11)

Assigns contents to an error condition.

1) Copy assignment operator. Assigns the contents of other.
2) Assigns error condition for enum e. Effectively calls make_error_condition(). Does not participate in the overload resolution unless is_error_condition_enum<ErrorConditionEnum>::value is true.

[edit] Parameters

other - another error condition to initialize with
e - error condition enum

[edit] Return value

*this.

[edit] Exceptions

noexcept specification:  
noexcept