Geant4-11
Static Public Member Functions
PTL::ForEachTupleArg< N > Struct Template Reference

#include <Tuple.hh>

Static Public Member Functions

template<typename Func , typename Head >
static auto apply (Func &&func, Head &&head)
 
template<typename Func , typename Head , typename... Tail>
static void apply (Func &&func, Head &&head, Tail &&... tail)
 

Detailed Description

template<size_t N>
struct PTL::ForEachTupleArg< N >

Definition at line 293 of file Tuple.hh.

Member Function Documentation

◆ apply() [1/2]

template<size_t N>
template<typename Func , typename Head >
static auto PTL::ForEachTupleArg< N >::apply ( Func &&  func,
Head &&  head 
)
inlinestatic

Definition at line 296 of file Tuple.hh.

297 {
298 std::forward<Func>(func)(std::forward<Head>(head));
299 }

Referenced by PTL::ForEachTupleArg< N >::apply().

◆ apply() [2/2]

template<size_t N>
template<typename Func , typename Head , typename... Tail>
static void PTL::ForEachTupleArg< N >::apply ( Func &&  func,
Head &&  head,
Tail &&...  tail 
)
inlinestatic

Definition at line 302 of file Tuple.hh.

303 {
304 std::forward<Func>(func)(std::forward<Head>(head));
305 ForEachTupleArg<N - 1>::apply(std::forward<Func>(func),
306 std::forward<Tail>(tail)...);
307 }
static auto apply(Func &&func, Head &&head)
Definition: Tuple.hh:296

References PTL::ForEachTupleArg< N >::apply().


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