std::__future_base(3)
π std::__future_base(3)
okay so bestie, welcome to the std::__future_base page β this is the Library Functions Manual entry for it, and honestly? it's the backstage pass of the <future> header. it's the base class and the enclosing scope, which is a whole vibe (main character energy fr fr β everything else lives inside it π).
β¨ NAME β¨
std::__future_base β base class and enclosing scope. that's it, that's the name. short, sweet, iconic. π
π¦ SYNOPSIS π¦
so this one gets inherited, meaning these girls are its daughters:
std::__basic_future< void >std::__basic_future< _Res & >std::__basic_future< _Res >
πΈ Classes
struct _Resultβ a result object that has storage for an object of type_Res. it's literally holding your stuff for you. π«Άstruct _Result< _Res & >β partial specialization for reference types. yes, references get their own little branch of the family tree.struct _Result< void >β explicit specialization forvoid. the "no thing" gets a special case, and honestly? iconic behavior. πstruct _Result_allocβ a result object that uses an allocator.struct _Result_baseβ base class for results. the mother of results, if you will. π
π Public Types
template<typename _Res > using _Ptr = unique_ptr< _Res, _Result_base::_Deleter >β aunique_ptrfor result objects. that's the whole job, and it does it slay. β¨using _State_base = _State_baseV2β an alias, no cap. she's just_State_baseV2with a cuter name.
π§ Static Public Member Functions
okay bestie, three of these, all starting with _S_, all static, all doing their little thing:
template<typename _Res , typename _Allocator > static _Ptr< _Result_alloc< _Res, _Allocator > > _S_allocate_result (const _Allocator &__a)template<typename _Res , typename _Tp > static _Ptr< _Result< _Res > > _S_allocate_result (const std::allocator< _Tp > &__a)template<typename _Res_ptr , typename _BoundFn > static _Task_setter< _Res_ptr, _BoundFn > _S_task_setter (_Res_ptr &__ptr, _BoundFn &__call)
that's two _S_allocate_result overloads (one taking a general _Allocator, one taking std::allocator< _Tp >) and one _S_task_setter. all three are static public member functions, so they're the community-facing girlies of this class. π
π Detailed Description π
Base class and enclosing scope.
that's the whole description. she's the base, she's the scope, she contains multitudes. β¨
Definition at line 198 of file future. β yes, literally line 198, go look, i'll wait. π΅οΈββοΈ
π₯ Member Typedef Documentation π₯
β template<typename _Res > using std::__future_base::_Ptr = unique_ptr<_Res, _Result_base::_Deleter>
a unique_ptr for result objects. π
that's the typedef, that's the vibe.
Definition at line 223 of file future. β line 223 this time, bestie, not 198. keep track. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so nobody wrote this, a robot did, and honestly she ate. π€β¨
aaaand that's the page! π sign-off time: this gem came from libstdc++ and the dated footer says Thu Jul 11 2024, so that's the version + date energy we're closing with. mwah, go read your <future> header, ily, bye! ππ¦π
π¦ where this page comes from
- centos-stream 9: gcc-toolset-12-libstdc++-docs 12.2.1-7.7.el9 Β· GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms