Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
PTL::ForwardTupleAsArgs< N > Struct Template Reference

#include <Tuple.hh>

Static Public Member Functions

template<typename Func , typename Head , typename... Tail>
static auto forward (Func &&func, Head &&head, Tail &&... tail) -> decltype(ForwardTupleAsArgs< N - 1 >::forward(std::forward< Func >(func), std::forward< Head >(head), std::get< N - 1 >(std::forward< Head >(head)), std::forward< Tail >(tail)...))
 

Detailed Description

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

Definition at line 263 of file Tuple.hh.

Member Function Documentation

◆ forward()

template<size_t N>
template<typename Func , typename Head , typename... Tail>
static auto PTL::ForwardTupleAsArgs< N >::forward ( Func &&  func,
Head &&  head,
Tail &&...  tail 
) -> decltype(ForwardTupleAsArgs<N - 1>::forward( std::forward<Func>(func), std::forward<Head>(head), std::get<N - 1>(std::forward<Head>(head)), std::forward<Tail>(tail)...))
inlinestatic

Definition at line 266 of file Tuple.hh.

270 {
272 std::forward<Func>(func), std::forward<Head>(head),
273 std::get<N - 1>(std::forward<Head>(head)), std::forward<Tail>(tail)...);
274 }
static auto forward(Func &&func, Head &&head, Tail &&... tail) -> decltype(ForwardTupleAsArgs< N - 1 >::forward(std::forward< Func >(func), std::forward< Head >(head), std::get< N - 1 >(std::forward< Head >(head)), std::forward< Tail >(tail)...))
Definition: Tuple.hh:266

Referenced by PTL::ForwardTupleAsArgs< N >::forward().


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