W3cubDocs

/C++

std::system_error::code

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

[virtual]
returns an explanatory string
(virtual public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/error/system_error/code