GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::coroutine_handle::promise(3) C++ Standard Libary std::coroutine_handle::promise(3)

std::coroutine_handle::promise - std::coroutine_handle::promise


Member of the primary template
Promise& promise() const; (since C++20)
Member of specialization
std::coroutine_handle<std::noop_coroutine_promise>
std::noop_coroutine_promise& promise() const noexcept; (since C++20)


Obtains a reference to the promise object.


The behavior is undefined if *this does not refer to a coroutine whose promise
object has not been destroyed.


This function is not provided for the specialization std::coroutine_handle<>.


(none)


A reference to the promise object.


The promise object of a no-op coroutine is not destroyed as long as there is some
std::noop_coroutine_handle referring to the coroutine.


from_promise creates a coroutine_handle from the promise object of a coroutine
[static] (C++20) (public static member function)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.