Workfunction wrapper that facilitates promotion of a localized return value to the global scope (i.e., that of the PARAGRAPH instead of the task.
More...
|
| promote_wf (tg_callback cb, WF const &wf, GlobalVS const &gvs) |
|
template<typename... Views> |
result_type | operator() (Views const &... views) |
| Forward parameters to WF invocation, take return value and pass on to promotion_resolver::operator()/promote() call chain with tuple of input params as an additional parameter. Generalize the base workfunction's localized result. More...
|
|
|
typedef wf_invoke< WF, GlobalVS >::result_type | result_type |
|
template<typename WF, typename GlobalVS>
struct stapl::paragraph_impl::promote_wf< WF, GlobalVS >
Workfunction wrapper that facilitates promotion of a localized return value to the global scope (i.e., that of the PARAGRAPH instead of the task.
- Template Parameters
-
WF | The workfunction type passed to task creation. |
GlobalVS | The pre-localization view set type. |
◆ operator()()
template<typename WF , typename GlobalVS >
template<typename... Views>
Forward parameters to WF invocation, take return value and pass on to promotion_resolver::operator()/promote() call chain with tuple of input params as an additional parameter. Generalize the base workfunction's localized result.
- Parameters
-
views... | Variadic list of views that are passed to the base workfunction. |
- Returns
- The promoted return value of the workfunction.
The documentation for this struct was generated from the following file: