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::suspend_always(3) C++ Standard Libary std::suspend_always(3)

std::suspend_always - std::suspend_always


Defined in header <coroutine>
struct suspend_always; (since C++20)


suspend_always is an empty class which can be used to indicate that an await
expression always suspends and does not produce a value.


await_ready indicates that an await expression always suspends
(C++20) (public member function)
await_suspend no-op
(C++20) (public member function)
await_resume no-op
(C++20) (public member function)

std::suspend_always::await_ready


constexpr bool await_ready() const noexcept { return false; } (since C++20)


Always returns false, indicating that an await expression always suspends.

std::suspend_always::await_suspend


constexpr void await_suspend(std::coroutine_handle<>) const noexcept (since C++20)
{}


Does nothing.

std::suspend_always::await_resume


constexpr void await_resume() const noexcept {} (since C++20)


Does nothing. An await expression does not produce a value if suspend_always is
used.


This section is incomplete
Reason: no example


suspend_never indicates that an await-expression should never suspend
(C++20) (class)

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.