Compartir a través de


make_error_code Function

Creates an error_code together with the error_category object that characterizes future errors.

inline error_code make_error_code(
   future_errc Errno
) _NOEXCEPT;

Parameters

  • Errno
    A future_errc value that identifies the reported error.

Return Value

error_code(static_cast<int>(Errno), future_category());

Requirements

Header: future

Namespace: std

See Also

Reference

<future>

Other Resources

C++ Standard Library Header Files