STD::__FUTURE_BASE__RESULT(3cxx)
πΈ NAME πΈ
std::__future_base::_Result< _Res > β bestie, it's a result object, and it comes with storage for an object of type _Res. That's the whole vibe. π
β¨ SYNOPSIS β¨
Okay so the family tree real quick, because this struct did NOT come from nowhere:
Inherits std::__future_base::_Result_base.
And it's got a glow-up descendant of its own:
Inherited by std::__future_base::_Result_alloc< _Res, _Alloc >.
π Public Types
typedef _Res result_typeβ the type it holds, front and center, no secrets. π
π«Ά Public Member Functions
void _M_set (_Res &&__res)β drops in a value, move-flavored, rvalue energy only.void _M_set (const _Res &__res)β same thing but copy-style, takes aconst _Res &and doesn't mess with it._Res & _M_value () noexceptβ hands you back a_Res &, and yes it'snoexcept, it said what it said. π₯
β Public Attributes
exception_ptr _M_errorβ the little corner where an error can just... live. π
π DETAILED DESCRIPTION π
template<typename _Res>
struct std::__future_base::_Result< _Res >
A result object that has storage for an object of type _Res. That's it, that's the whole assignment, and it ate. π
Heads up, icon: this is defined at line 227 of file future. Noted. Bookmarked. Immortalized. β¨
π¦ AUTHOR π¦
Generated automatically by Doxygen for libstdc++ from the source code. Not a human, not a bestie, just a very diligent little tool doing its thing. π§
And that's the tea, fr fr β this page is from the libstdc++ manual, dated Sat Mar 1, filed under std::__future_..._Result< _Res >(3cxx). Slay, go forth and store your results. ππ
π¦ 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