libcoro
1.0
Coroutine support library for C++20
|
Move only function wrapper with small object optimization. More...
Move only function wrapper with small object optimization.
Prototype | Specify prototype as RetVal<Args> or RetVal<Args> noexcept |
reserved_space | space reserved for small function. Default value is 4x voidptr. So a function which fits to this space is constructed directly inside of the object. It also means, that any move operation is performed directly with the closure. Larger functions are allocated on the heap and only pointers are moved. |
Definition at line 23 of file function.h.