halcheck 1.0
Loading...
Searching...
No Matches

◆ handle() [2/3]

template<typename Self , typename... Effects>
owning_scope halcheck::lib::effect::handler< Self, Effects >::handle ( ) &&
inline

Overrides the behaviour of a set of effects.

Returns
A value whose lifetime determines how long the set of effect handlers are overriden.
Postcondition
While the return value is in scope, for all effects T and args of type T,
  • effect::invoke(args) == (*this)(args) if T is an element of Effects, and
  • effect::invoke(args) behaves as if it were called before calling this function otherwise.