libcoro  1.0
Coroutine support library for C++20
List of all members
coro::construct_using< Fn > Class Template Reference

Constructor for emplace. More...

#include <construct.h>

Detailed Description

template<std::invocable<> Fn>
class coro::construct_using< Fn >

Constructor for emplace.

Template Parameters
Fnfunction which returns value to emplace or co_return

following code constructs result directly in output future

co_return coro::construct_using([&]{return unmovable_object(arg1,arg2);});
Constructor for emplace.
Definition: construct.h:20

Definition at line 20 of file construct.h.


The documentation for this class was generated from the following file: