libcoro  1.0
Coroutine support library for C++20

◆ get_promise() [2/2]

template<typename T >
template<typename stl_allocator >
promise<T> coro::shared_future< T >::get_promise ( stl_allocator &&  allocator)
inline

Initialize future and get promise.

Initializes future using standard stl allocator

Template Parameters
stl_allocator
Parameters
allocatorinstance of standard allocator
Returns

Definition at line 1502 of file future.h.