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