[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This document outlines the `promise\u003cT\u003e` class implementation, conforming to ISO/IEC TS 19571:2016, and details its various versions, including the latest release candidate 2.37.0-rc."],["The `promise` class allows for the creation of promises with or without a shared state, with constructors for both, along with one for a given `std::function\u003cvoid()\u003e` type cancellation callback."],["The `promise` class provides the ability to transfer shared state via move assignment and copy assignment operators, and manage them using the `swap` function."],["The `get_future()` function creates a `future\u003cT\u003e` object tied to the same shared state as the `promise`, while the `set_value(T)` method fulfills the shared state with a given value."],["Attempting to set a value on an already-satisfied shared state or a promise without a shared state will throw `std::future_error`, with `std::future_errc::promise_already_satisfied` or `std::no_state` respectively."]]],[]]