STD::__BASIC_FUTURE(3cxx)
π NAME π
Okay so bestie, welcome to the std::__basic_future< _Res >(3cxx) page β manual name folded in right here at the top, as requested. This class is the common implementation for future and shared_future. Like, the shared guts. Periodt. π
β¨ SYNOPSIS β¨
#include <future>
- Inherits
__future_base. - Inherited by
std::future< _Res >, andstd::shared_future< _Res >.
π£ Public Member Functions π£
__basic_future (const __basic_future &)=deleteβ copy constructor is literally deleted, no cap.__basic_future & operator= (const __basic_future &)=deleteβ copy assignment is also deleted. Not me gatekeeping, that's the listing.bool valid () const noexceptβ the page lists it exactly like this, no extra blurb attached.void wait () constβ same vibe: here's the signature, that's the tea.template<typename _Rep , typename _Period > future_status wait_for (const chrono::duration< _Rep, _Period > &__rel) constβ template-tastic, and the signature is the whole story on this page.template<typename _Clock , typename _Duration > future_status wait_until (const chrono::time_point< _Clock, _Duration > &__abs) constβ another template-heavy one, copied character for character.
π¨ Copying is deleted, bestie β__basic_future (const __basic_future &)=deleteand__basic_future & operator= (const __basic_future &)=delete. That's not a suggestion, that's the actual listing. π
π‘οΈ Protected Types π‘οΈ
__result_typeβtypedef __future_base::_Result< _Res > & __result_type__state_typeβtypedef shared_ptr< _State_base > __state_type
π Protected Member Functions π
__basic_future (const __state_type &__state)β protected constructor, listed with no extra prose.__basic_future (const shared_future< _Res > &) noexceptβ protected constructor,noexceptincluded.__basic_future (future< _Res > &&) noexceptβ protected move-ish constructor fromfuture< _Res > &&,noexceptincluded.__basic_future (shared_future< _Res > &&) noexceptβ protected move-ish constructor fromshared_future< _Res > &&,noexceptincluded.__result_type _M_get_result () constβ Wait for the state to be ready and rethrow any stored exception. π«Άvoid _M_swap (__basic_future &__that) noexceptβ protected swap,noexcept, exactly as listed.
πΈ Detailed Description πΈ
template<typename _Res>
class std::__basic_future< _Res >"Common implementation for future and
shared_future.
The vibe is literally right there in the description: βCommon implementation for future and shared_future.β It's giving shared infrastructure, main character energy for the future family. π
π Member Function Documentation π
π _M_get_result
template<typename _Res > __result_type std::__basic_future< _Res >::_M_get_result () const [inline], [protected]
Wait for the state to be ready and rethrow any stored exception.
References std::rethrow_exception(). π₯
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
π That's the whole page, bestie β source/version is libstdc++, page is std::__basic_future< _Res >(3cxx), and the footer has no date, so I'm not inventing one. π«Ά
π¦ 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