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

Defines function, which is called when function is exited. More...

#include <on_leave.h>

Detailed Description

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

Defines function, which is called when function is exited.

on_leave lv = [&] {
//..code...
};

This tool can be used especially in generators. The function is called also before the generator is destroyed.

Template Parameters
Fnfunction

Definition at line 23 of file on_leave.h.


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