31 Input/output library [input.output]

31.5 Iostreams base classes [iostreams.base]

31.5.6 Error reporting [error.reporting]

error_code make_error_code(io_errc e) noexcept;
Returns: error_code(static_cast<int>(e), iostream_category().
error_condition make_error_condition(io_errc e) noexcept;
Returns: error_condition(static_cast<int>(e), iostream_category().
const error_category& iostream_category() noexcept;
Returns: A reference to an object of a type derived from class error_category.
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 shall return a pointer to the string "iostream".

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant