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

Trait that reports whether a fallback policy is compatible with raw task result type R. More...

#include <traits.hpp>

Inheritance diagram for yorch::detail::catch_policy_supported< R, Policy, typename >:
Collaboration diagram for yorch::detail::catch_policy_supported< R, Policy, typename >:

Detailed Description

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

Trait that reports whether a fallback policy is compatible with raw task result type R.

Compatibility means:

  • the policy is invocable as policy(const std::exception_ptr&) and is noexcept
  • for void tasks, the policy returns step_result
  • for non-void tasks, the policy result is convertible to the raw result
Template Parameters
RRaw task return type.
PolicyPolicy type.
EnableSFINAE hook used to suppress diagnostics for non-invocable policies.

Definition at line 162 of file traits.hpp.


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