std::make_e...e(std::errc)(3)
π 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms