std::__future_base::_Result_base(3cxx)
π NAME π
std::__future_base::_Result_base β the base class for results, bestie. That's it, that's the whole job. π
(Oh and real quick: this is a 3cxx man page, so you're in the C++ standard library section of your man pages, not the crusty old C ones. Just so you know where you are. π«Ά)
β¨ SYNOPSIS β¨
okay so first thing, this class gets inherited by these three:
std::__future_base::_Result< _Res >
std::__future_base::_Result< _Res & >
std::__future_base::_Result< void >
So like, it's the mom friend of the family. The base of the base. Everyone below it is a specialisation and it's just up there holding the whole bloodline together. π
π Public Member Functions
_Result_base(const _Result_base &)=deleteβ copy constructor? deleted. Gone. Not allowed. You cannot copy one of these, fr fr. πvirtual void _M_destroy ()=0β pure virtual, so it's got no body at all. Every subclass has to write their own. It's giving "figure it out yourself." π_Result_base &operator=(const _Result_base &)=deleteβ assignment operator, also deleted. No copying, no assigning. This class said "I am not shareable." periodt.
π¦ Public Attributes
exception_ptr _M_errorβ the error slot. If something went wrong, this is where the exception lives. πΈ
π Detailed Description π
Base class for results. It's the abstract parent that all the _Result specialisations build on. You don't instantiate it directly β you let the kids do the actual work. That's the vibe.
ngl, if you're reading this page you probably got here from a compiler error or a very deep template. Sending you strength. π
Definition at line 201 of file future. So if you wanna go look at it yourself, that's where it's at. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. So like, no human wrote this prose. It was Doxygen the whole time. Iconic behaviour honestly. β¨
aaaand that's the whole page bestie!! π this one shipped as part of libstdc++, dated Sat Mar 1 β take care of yourself, hydrate, and may all your futures resolve cleanly π¦ππ
π¦ where this page comes from
- ubuntu jammy: libstdc++-12-doc 12-20220319-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms