cuda::experimental::stf::sump::effect_t#
-
template<class _F>
struct effect_t# An effect: run a callable on the failure and decide nothing (answer
void).effect(f)is the general effect-only sink, of whichnotifyandstoreare the named cases.fmay take nothing, or the failure: on the exception channel aconst std::exception*(null for a non-standard exception), on the code channel the status value. On its own the operation goes on (the default value, the status unchanged); inside&whatever follows decides. A throw fromfforwards, as from any hook.int level = 0; auto evict = effect([&] { reclaim(place, -size, prereqs); ++level; }); ((evict & retry) * 5 | unwind) ->* [&] { return allocator.allocate(place, size, prereqs); };