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

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

Member Typedef Documentation

◆ Type

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

Definition at line 44 of file JoinFunction.hh.

Constructor & Destructor Documentation

◆ JoinFunction()

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

Definition at line 50 of file JoinFunction.hh.

51 : m_func(std::forward<Func>(func))
52 {}

Member Function Documentation

◆ operator()()

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

Definition at line 55 of file JoinFunction.hh.

56 {
57 return std::move(m_func(std::forward<Args>(args)...));
58 }

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