std::future_error(3cxx)
π std::future_error β the manual page, but make it make sense
okay so bestie, welcome to the std::future_error(3cxx) page (that's the manual name right there, iykyk) β let's get into it π«Ά
β¨ NAME β¨
std::future_error β the exception type that futures throw at you. literally that's the whole vibe check, she's an exception, she gets thrown by futures π
πΈ SYNOPSIS πΈ
#include <future>
Inherits std::logic_error. no cap, that's her whole family tree π§
π Public Member Functions
future_error (future_errc __errc)β the constructor, takes afuture_errcand gets to workconst error_code & code () const noexceptβ hands you back theerror_code,noexceptso chillvirtual const char * what () const noexceptβ the iconic description getter, virtual +noexceptβ¨
π¦ Friends
void __throw_future_error (int)β yes she has a friend, and yes it returnsvoidand takes anint
π Detailed Description π
Okay so: this is the exception type thrown by futures. That's her entire job. She's giving main character energy in the <future> header and honestly? obsessed π
β Since
C++11 β she's been iconic since C++11, periodt π
π Member Function Documentation π
π virtual const char * std::future_error::what () const [virtual], [noexcept]
Returns a C-style character string describing the general cause of the current error. and like, it's the same string that got passed to the ctor (future_error(future_errc __errc)), so no surprises, fr fr π
Reimplemented from std::logic_error β she's doing her own version of the family classic π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. not a human, not a vibe, just Doxygen doing its thing π
ngl bestie the whole point is: future throwsstd::future_errorwhen something goes sideways, you can grab thecode(), andwhat()gives you the cute little C-style string. that's it. that's the page. π
okay that's the whole page, hope this slayed for you π«Ά this was std::future_error(3cxx) from libstdc++ β mwah, go catch those exceptions bestie ππβ¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms