|
YOrch 1.0.0
|
Reports whether a task's declared raw_result_type agrees with the concrete return type of invoke_raw(exec_context<Ctx, Prev>&).
More...
#include <traits.hpp>


Reports whether a task's declared raw_result_type agrees with the concrete return type of invoke_raw(exec_context<Ctx, Prev>&).
This trait is intentionally permissive for tasks that do not declare raw_result_type: in that case it yields true, so runtime-only task shapes can still participate in lower-level execution checks. When a task does opt into the declared raw-result contract, however, this trait enforces that the declaration remains consistent with the actual invoke_raw(...) expression type observed for the concrete execution context.
The executor and task adapters use this as a protocol guard so plan-facing metadata and execution-time behavior cannot silently drift apart.
| Task | Task type being checked. |
| Ctx | Context schema for the concrete invocation. |
| Prev | Direct-parent slot view type for the concrete invocation. |
| Enable | SFINAE hook that activates strict checking only when Task::raw_result_type is declared. |
Definition at line 89 of file traits.hpp.