|
halcheck 1.0
|
A state determines the behaviour of all effects. More...
#include <effect.hpp>
Public Member Functions | |
| state ()=default | |
| Constructs the default state object. | |
| state (lib::in_place_t) | |
| Copies the current set of effect handlers. | |
| lib::finally_t | handle () & |
| Overrides the current set of effect handlers. | |
| lib::finally_t | handle () && |
| Overrides the current set of effect handlers. | |
| template<typename F , typename... Args> | |
| lib::invoke_result_t< F, Args... > | handle (F func, Args &&...args) |
| Invokes a function, handling any effects using this state. | |
A state determines the behaviour of all effects.