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

#include <Tuple.hh>

Public Types

using Function = std::function< void(Head)>
 

Static Public Member Functions

template<typename TupleType >
static void apply (const Function &func, const TupleType &t)
 

Detailed Description

template<typename Head, typename... Tail>
struct PTL::transform_tuple< Head, Tail >

Definition at line 402 of file Tuple.hh.

Member Typedef Documentation

◆ Function

template<typename Head , typename... Tail>
using PTL::transform_tuple< Head, Tail >::Function = std::function<void(Head)>

Definition at line 404 of file Tuple.hh.

Member Function Documentation

◆ apply()

template<typename Head , typename... Tail>
template<typename TupleType >
static void PTL::transform_tuple< Head, Tail >::apply ( const Function func,
const TupleType &  t 
)
inlinestatic

Definition at line 406 of file Tuple.hh.

407 {
408 func(std::get<0>(t));
409 PopFront<TupleType> nt = std::tuple<Tail...>{ std::get<Tail>(t)... };
411 }
static void apply(const Function &func, const TupleType &t)
Definition: Tuple.hh:406

Referenced by PTL::transform_tuple< Head, Tail >::apply().


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