[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/error/error_code/operator%3D [Back]  [Original]

std::error_code::operator= cppreference.com
cppreference.com

std::error_code::operator=

cppreference.com
 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
 
 
 
<tbody> </tbody>
template< class ErrorCodeEnum > error_code& operator=( ErrorCodeEnum e ) noexcept;
(1) ( C++11)
error_code& operator=( const error_code& other ) = default;
(2) ( C++11)
( )
error_code& operator=( error_code&& other ) = default;
(3) ( C++11)
( )
1) , e.

*this = make_error_code(e), make_error_code , . , std::is_error_code_enum<ErrorCodeEnum>::value true.

2,3) other *this.

e
other

*this

C++:

LWG 3629 C++11 std::make_error_code , ADL


(public -) []

Web Proxy Viewer  |  New URL  |  Original Page