YOrch 1.0.0
Loading...
Searching...
No Matches
yorch::detail::policy_result< Policy, typename > Struct Template Reference

Extracts the result type returned by an exception fallback policy. More...

Detailed Description

template<typename Policy, typename = void>
struct yorch::detail::policy_result< Policy, typename >

Extracts the result type returned by an exception fallback policy.

The policy contract is a noexcept call that accepts a captured exception either by value (std::exception_ptr) or by const lvalue reference (const std::exception_ptr&).

Template Parameters
PolicyPolicy type stored inside catch_as_failure(task, policy).
EnableSFINAE hook used to detect whether the policy is invocable.

Definition at line 44 of file traits.hpp.


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