libcoro  1.0
Coroutine support library for C++20

◆ emplace()

template<typename T , typename QueueImpl = std::queue<T>>
template<typename ... Args>
promise<T>::notify coro::queue< T, QueueImpl >::emplace ( Args &&...  args)
inline

Push the item to the queue (emplace)

Parameters
argsarguments needed to construct the item.
Returns
pending notify of resolved promise (if applicable)
Note
function can cause resumption of awaiting coroutine.

Definition at line 61 of file queue.h.

+ Here is the caller graph for this function: