std::error_...or_condition(3) C++ Standard Libary std::error_...or_condition(3) NAME std::error_condition::error_condition - std::error_condition::error_condi- tion Synopsis error_condition() noexcept; (1) (since C++11) error_condition( int val, const error_category& cat ) (2) (since C++11) noexcept; template< class ErrorConditionEnum > (3) (since C++11) error_condition( ErrorConditionEnum e ) noexcept; error_condition( const error_condition& other ) = default; (4) (since C++11) (implic- itly declared) error_condition( error_condition&& other ) = default; (5) (since C++11) (implic- itly declared) Constructs new error condition. 1) Default constructor. Initializes the error condition with generic category and error value 0. 2) Initializes the error condition with error value val and error cate- gory cat. 3) Initializes the error condition with enum e. Effectively calls make_error_condition that is only found by argument-dependent lookup for e. This overload participates in overload resolution only if std::is_error_condition_enum<ErrorConditionEnum>::value is true. 4,5) Implicitly defined copy constructor and move constructor. Initial- izes the error condition with the contents of the other. Parameters other - another error condition to initialize with val - error value cat - error category e - error condition enum Defect reports The following behavior-changing defect reports were applied retroac- tively to previously published C++ standards. DR Applied to Behavior as published Cor- rect behavior LWG 3629 C++11 only std::make_error_condition overloads ADL- found overloads were used are used See also make_error_condition(std::errc) creates an error condition for an errc value (C++11) e (function) make_error_condition(std::io_errc) constructs an iostream error con- dition (C++11) (function) make_error_condition(std::future_errc) constructs a future error_condi- tion (C++11) (function) http://cppreference.com 2024.06.10 std::error_...or_condition(3)
NAME | Synopsis | Parameters | See also
Want to link to this manual page? Use this URL:
<https://man.FreeBSD.org/cgi/man.cgi?query=std::error_condition::error_condition&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>