std::future_error::code

From cppreference.com
< cpplrm; | threadlrm; | future error
Thread support library
Threads
(C++11)
this_thread namespace
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
const std::error_code& code() const noexcept;
(since C++11)

Returns the stored error code.

Parameters

(none)

Return value

The stored error code.

See also

returns the explanatory string specific to the error code
(public member function)