std::make_e...e(std::errc)(3)

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

πŸ’– std::make_error_code(std::errc) πŸ’–

C++ Standard Libary manual, bestie β€” yes, that's the manual's own spelling, not me being chaotic πŸ’€. This is the page for std::make_error_code(std::errc), and it's giving β€œtiny utility, big noexcept energy.”

πŸŽ€ NAME πŸŽ€

std::make_error_code(std::errc) β€” the NAME line is literally std::make_error_code(std::errc) - std::make_error_code(std::errc). Repetitive? Yes. Iconic? Also yes.

✨ Synopsis ✨

Defined in header <system_error>.

std::error_code make_error_code( std::errc e ) noexcept;

(since C++11)

It creates error code value for errc enum e, and yes bestie, it's noexcept β€” no throw, no drama.

Equivalent to std::error_code(static_cast<int>(e), std::generic_category()).

🫢 Parameters 🫢

  • e β€” error code enum to create error code for.

🌸 Return value 🌸

Error code corresponding to e.

πŸ”₯ See also πŸ”₯

  • make_error_code(std::io_errc) β€” constructs an iostream error code (C++11) (function)
  • make_error_code(std::future_errc) β€” constructs a future error code (C++11) (function)

okay that's the whole page, bestie πŸ’…. Source/version/date realness: http://cppreference.com, 2024.06.10, and the footer page id is std::make_e...e(std::errc)(3). Go forth and make those error codes βœ¨πŸŽ€

πŸ“¦ where this page comes from