QMCPACK
TaskWrapper< F > Struct Template Reference

TaskWrapper code from https://stackoverflow.com/questions/48268322/wrap-stdthread-call-function. More...

+ Collaboration diagram for TaskWrapper< F >:

Public Member Functions

template<typename... T>
void operator() (T &&... args)
 

Public Attributes

f
 

Detailed Description

template<typename F>
struct qmcplusplus::TaskWrapper< F >

TaskWrapper code from https://stackoverflow.com/questions/48268322/wrap-stdthread-call-function.

Required to forward an arbitrary var args function

Definition at line 35 of file ParallelExecutorSTD.hpp.

Member Function Documentation

◆ operator()()

void operator() ( T &&...  args)
inline

Definition at line 40 of file ParallelExecutorSTD.hpp.

References TaskWrapper< F >::f.

41  {
42  f(std::forward<T>(args)...);
43  }

Member Data Documentation

◆ f

F f

Definition at line 37 of file ParallelExecutorSTD.hpp.

Referenced by TaskWrapper< F >::operator()().


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