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

#include <TaskGroup.hh>

Public Types

using Type = std::function< JoinT(JoinT &, JoinArg &&)>
 

Public Member Functions

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

Detailed Description

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

Definition at line 67 of file TaskGroup.hh.

Member Typedef Documentation

◆ Type

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

Definition at line 70 of file TaskGroup.hh.

Constructor & Destructor Documentation

◆ JoinFunction()

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

Definition at line 76 of file TaskGroup.hh.

77 : m_func(std::forward<Func>(func))
78 {}

Member Function Documentation

◆ operator()()

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

Definition at line 81 of file TaskGroup.hh.

82 {
83 return std::move(m_func(std::forward<Args>(args)...));
84 }

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