std::make_e...uture_errc)(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… NAME πŸ’…

okay so this page is std::make_e...uture_errc)(3) from the C++ Standard Libary manual β€” and yes bestie, that's β€œLibary” with the typo, we keep it, no cap. The NAME here is std::make_error_code(std::future_errc) β€” and the original NAME line literally repeats std::make_error_code(std::future_errc) twice. iconic. πŸ’–

✨ Synopsis ✨

Defined in header <future>:

std::error_code make_error_code( std::future_errc e );  (since C++11)

It constructs an std::error_code object from a value of type std::future_errc as if by:

std::error_code(static_cast<int>(e), std::future_category()).

This function is called by the constructor of std::error_code when given an std::future_errc argument. 🫢

πŸŽ€ Parameters πŸŽ€

  • e β€” error code number

πŸ¦‹ Return value πŸ¦‹

A value of type std::error_code that holds the error code number from e associated with the error category "future". slay. ✨

🌸 Example 🌸

This section is incomplete Reason: no example

🌈 See also 🌈

  • error_code β€” holds a platform-dependent error code (C++11) (class)
  • future_errc β€” identifies the future error codes (C++11) (enum)
  • make_error_code(std::errc) β€” creates error code value for errc enum (C++11) (function)
  • make_error_code(std::io_errc) β€” constructs an iostream error code (C++11) (function)

πŸ“ Category πŸ“

  • Todo no example

mwah πŸ’– this was the std::make_e...uture_errc)(3) page, source http://cppreference.com, version/date 2024.06.10. go slay those error codes, bestie πŸ‘‘πŸŒΏ

πŸ“¦ where this page comes from