Files
cppdraft_translate/cppdraft/futures/errors.md
2025-10-25 03:02:53 +03:00

1.4 KiB

[futures.errors]

32 Concurrency support library [thread]

32.10 Futures [futures]

32.10.3 Error handling [futures.errors]

🔗

const error_category& future_category() noexcept;

1

#

Returns: A reference to an object of a type derived from class error_category.

2

#

The object's default_error_condition and equivalent virtual functions shall behave as specified for the class error_category.

The object's name virtual function returns a pointer to the string "future".

🔗

error_code make_error_code(future_errc e) noexcept;

3

#

Returns: error_code(static_cast(e), future_category()).

🔗

error_condition make_error_condition(future_errc e) noexcept;

4

#

Returns: error_condition(static_cast(e), future_category()).