About 51 results
Open links in new tab
  1. std:: async - cppreference.com

    Oct 28, 2024 · The function template std::async runs the function f asynchronously (potentially in a separate thread which might be a part of a thread pool) and returns a std::future that will eventually …

  2. std:: future - cppreference.com

    Mar 12, 2024 · An asynchronous operation (created via std::async, std::packaged_task, or std::promise) can provide a std::future object to the creator of that asynchronous operation. The creator of the …

  3. Coroutines (C++20) - cppreference.com

    Mar 5, 2025 · A coroutine is a function that can suspend execution to be resumed later. Coroutines are stackless: they suspend execution by returning to the caller, and the data that is required to resume …

  4. std::launch - cppreference.com

    Mar 19, 2025 · std::launch is a BitmaskType. It specifies the launch policy for a task executed by the std::async function. Constants The following constants denoting individual bits are defined by the …

  5. Extensions for networking - cppreference.com

    Sep 11, 2023 · The C++ Extensions for Networking, ISO/IEC TS 19216:2018, defines new components for the C++ standard library listed on this page. The Networking TS is based on the C++14 standard …

  6. std::stop_source - cppreference.com

    Jul 16, 2024 · The stop_source class provides the means to issue a stop request, such as for std::jthread cancellation. A stop request made for one stop_source object is visible to all stop_source …

  7. std::shared_future - cppreference.com

    Oct 23, 2023 · The class template std::shared_future provides a mechanism to access the result of asynchronous operations, similar to std::future, except that multiple threads are allowed to wait for …

  8. std::promise - cppreference.com

    Oct 23, 2023 · The class template std::promise provides a facility to store a value or an exception that is later acquired asynchronously via a std::future object created by the std::promise object. Note that …

  9. std::stop_token - cppreference.com

    Jul 31, 2024 · The stop_token class provides the means to check if a stop request has been made or can be made, for its associated std::stop_source object. It is essentially a thread-safe "view" of the …

  10. std::stop_token::stop_token - cppreference.com

    Oct 24, 2023 · 2) Copy constructor. Constructs a stop_token whose associated stop-state is the same as that of other.