# std::experimental::promise (concurrency TS)

> C++ Atlas: `cppatlas.com/w/cpp/experimental/concurrency/promise` | Source: https://en.cppreference.com/w/cpp/experimental/concurrency/promise | Domain: Technical specifications

std::experimental::concurrency_v1::promise is a modified version of std::promise provided by the concurrency TS that works with std::experimental::future.

## Official Specification Summary (cppreference)

*This page is about the modified version of `std::promise` provided by the concurrency TS supporting the `std::future` improvements made by that TS. For the version of `promise` with type-erased allocator support provided by the Library Fundamentals TSes, see `std::experimental::fundamentals_v2::promise`.*

```cpp
// Defined in header <experimental/future>
template< class R > class promise; // (1) (concurrency TS)
template< class R > class promise<R&>; // (2) (concurrency TS)
template<>          class promise<void>; // (3) (concurrency TS)
```

`std::experimental::concurrency_v1::promise` is a modified version of `std::promise` provided by the concurrency TS that works with `std::experimental::future`.

The only change from `std::promise` is that the `get_future()` member function returns a `std::experimental::future`.

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/concurrency/promise (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.