std::future_category(3)
π¦ std::future_category(3) π¦
okay bestie, welcome to the C++ Standard Libary manual page for std::future_category(3) β no cap, thatβs the title and the manual name right there. And yes, this is the function page, not some βfuture vibesβ category, iykyk.
π NAME π
std::future_category β literally std::future_category. Self-titled, iconic, main character energy fr fr.
β¨ Synopsis β¨
Defined in header <future>
const std::error_category& future_category() noexcept; (since C++11)
So hereβs the tea: this function obtains a reference to the static error category object for the errors related to futures and promises. π«Ά
The object is required to override the virtual function error_category::name() to return a pointer to the string "future". It is used to identify error codes provided in the exceptions of type std::future_error.
π«Ά Parameters π«Ά
(none)β bestie, there are literally no parameters. Not a single one. Slay.
π₯ Return value π₯
A reference to the static object of unspecified runtime type, derived from std::error_category. Thatβs it, thatβs the whole return value. π
π Example π
This section is incomplete Reason: no example
Not me crying over the missing example π. The page itself says itβs incomplete, so weβre not inventing one.
π See also π
future_errcβ identifies the future error codes (C++11) (enum)future_errorβ reports an error related to futures or promises (C++11) (class)error_categoryβ base class for error categories (C++11) (class)
π Category π
Todo no example
mwah π β this pageβs source/version is http://cppreference.com, dated 2024.06.10. bye bestie, go forth and future-category responsibly πβ¨
π¦ 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