std::error_category(3)
๐ NAME ๐
std::error_category - std::error_category
Okay bestie, this is page std::error_category(3) from the C++ Standard Libary manual, and we are gonna make it make sense together ๐ซถ
๐ธ Synopsis ๐ธ
Defined in header <system_error>
class error_category; (since C++11)
So std::error_category is the base class for specific error category types โ think std::system_category, std::iostream_category, etc. Each specific category class defines the error_code - error_condition mapping and holds the explanatory strings for all error_conditions. The objects of error category classes are treated as singletons, passed by reference. Periodt ๐
๐ Member functions ๐
constructorโ constructs anerror_category(public member function) โจdestructorโ destructs anerror_category; tagged[virtual](virtual public member function)operator=โ not copy assignable; tagged[deleted](public member function)nameโ obtains the name of the category; tagged[virtual](virtual public member function) ๐ท๏ธdefault_error_conditionโ mapserror_codetoerror_condition; tagged[virtual](virtual public member function) ๐equivalentโ compareserror_codeanderror_conditionfor equivalence; tagged[virtual](virtual public member function) โ๏ธmessageโ obtains the explanatory string; tagged[virtual](virtual public member function) ๐ฌ
Then there's the operator crew, exactly as the page lists it:
operator==operator!=operator<โ compares two error categoriesoperator<=>โ(function)(removed in C++20)(removed in C++20)(C++20)
๐ Specific error categories ๐
generic_categoryโ identifies the generic error category;(C++11)(function)๐ฑsystem_categoryโ identifies the operating system error category;(C++11)(function)๐ฅ๏ธiostream_categoryโ identifies the iostream error category;(C++11)(function)๐future_categoryโ identifies the future error category;(C++11)(function)๐ฎ
โญ See also โญ
error_conditionโ holds a portable error code;(C++11)(class)๐งณerror_codeโ holds a platform-dependent error code;(C++11)(class)๐งฉ
made with ๐ from http://cppreference.com, version/date 2024.06.10, page std::error_category(3). bye bestie, go slay those error categories ๐ฆ๐
๐ฆ 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