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

#include <JoinFunction.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 67 of file JoinFunction.hh.

Member Typedef Documentation

◆ Type

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

Definition at line 70 of file JoinFunction.hh.

Constructor & Destructor Documentation

◆ JoinFunction()

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

Definition at line 76 of file JoinFunction.hh.

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

Member Function Documentation

◆ operator()()

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

Definition at line 81 of file JoinFunction.hh.

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

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