[[["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."],[[["The page details various versions of a C++ `promise` class, ranging from the latest release candidate, version 2.37.0-rc, down to version 2.10.1."],["The `promise` class is specialized for `void` and allows the creation of promises with or without a shared state."],["The class provides multiple constructors, including one for creating a promise with an unsatisfied shared state and another for creating a promise with a `null_promise_t`."],["The class offers `operator=` to manage shared state transfers and the `swap` function to exchange shared states between `promise` objects."],["The `get_future()` method creates a corresponding `future\u003cvoid\u003e` object, while `set_value()` fulfills the promise's shared state, throwing exceptions if the state is already fulfilled or if there is no state."]]],[]]