Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
PTL::JoinFunction< void, JoinArg > Struct Template Reference

#include <TaskGroup.hh>

Public Types

using Type = std::function< void(JoinArg)>
 

Public Member Functions

template<typename Func >
 JoinFunction (Func &&func)
 
template<typename... Args>
void operator() (Args &&... args)
 

Detailed Description

template<typename JoinArg>
struct PTL::JoinFunction< void, JoinArg >

Definition at line 93 of file TaskGroup.hh.

Member Typedef Documentation

◆ Type

template<typename JoinArg >
using PTL::JoinFunction< void, JoinArg >::Type = std::function<void(JoinArg)>

Definition at line 96 of file TaskGroup.hh.

Constructor & Destructor Documentation

◆ JoinFunction()

template<typename JoinArg >
template<typename Func >
PTL::JoinFunction< void, JoinArg >::JoinFunction ( Func &&  func)
inline

Definition at line 102 of file TaskGroup.hh.

103 : m_func(std::forward<Func>(func))
104 {}

Member Function Documentation

◆ operator()()

template<typename JoinArg >
template<typename... Args>
void PTL::JoinFunction< void, JoinArg >::operator() ( Args &&...  args)
inline

Definition at line 107 of file TaskGroup.hh.

108 {
109 m_func(std::forward<Args>(args)...);
110 }

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