About 125,000 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 …

  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. …

  3. 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 …

  4. 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 …

  5. Multi-threaded executions and data races (since C++11)

    Jan 15, 2025 · A thread of execution is a flow of control within a program that begins with the invocation of a specific top-level function (by std::thread, std::async, std::jthread (since C++20) …

  6. 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 …

  7. Concurrency support library (since C++11) - cppreference.com

    Apr 29, 2025 · Futures The standard library provides facilities to obtain values that are returned and to catch exceptions that are thrown by asynchronous tasks (i.e. functions launched in …

  8. Execution control library (since C++26) - cppreference.com

    Feb 24, 2025 · The library aims to provide vocabulary types for asynchronous operations and to allow the construction of task execution graphs in a simple, composable way.

  9. C++23 - cppreference.com

    Mar 27, 2025 · Make () more optional for lambda expressions (P1102R2) Narrowing contextual conversions to bool in static_assert and ifconstexpr (P1401R5) Make declaration order layout …

  10. 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. …