std::promise
From cppreference.com
Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<future>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td >template< class T > class promise;
</td>
<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >template< class T > class promise<T&>;
</td>
<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td >template<> class promise<void>;
</td>
<td > (3) </td> <td > (since C++11) </td> </tr> Template:ddcl list end
The class template std::promise
provides a facility to store a value that is later acquired asynchronously via a std::future object, that the std::promise
can supply.
This section is incomplete |
Contents |