Geant4-11
Namespaces | Typedefs | Functions
PTL::mpl Namespace Reference

Namespaces

namespace  impl
 

Typedefs

template<size_t... Idx>
using index_sequence = impl::integer_sequence< size_t, Idx... >
 Alias template index_sequence. More...
 
template<typename... Types>
using index_sequence_for = impl::make_index_sequence< sizeof...(Types)>
 Alias template index_sequence_for. More...
 
template<size_t NumT>
using make_index_sequence = impl::make_integer_sequence< size_t, NumT >
 Alias template make_index_sequence. More...
 

Functions

template<typename FnT , typename TupleT >
static void apply (FnT &&_func, TupleT &&_args)
 
template<typename... Args>
void consume_parameters (Args &&...)
 

Typedef Documentation

◆ index_sequence

template<size_t... Idx>
using PTL::mpl::index_sequence = typedef impl::integer_sequence<size_t, Idx...>

Alias template index_sequence.

Definition at line 184 of file Globals.hh.

◆ index_sequence_for

template<typename... Types>
using PTL::mpl::index_sequence_for = typedef impl::make_index_sequence<sizeof...(Types)>

Alias template index_sequence_for.

Definition at line 192 of file Globals.hh.

◆ make_index_sequence

template<size_t NumT>
using PTL::mpl::make_index_sequence = typedef impl::make_integer_sequence<size_t, NumT>

Alias template make_index_sequence.

Definition at line 188 of file Globals.hh.

Function Documentation

◆ apply()

template<typename FnT , typename TupleT >
static void PTL::mpl::apply ( FnT &&  _func,
TupleT &&  _args 
)
inlinestatic

Definition at line 196 of file Globals.hh.

197{
198 using tuple_type = typename std::decay<TupleT>::type;
199 constexpr auto N = std::tuple_size<tuple_type>::value;
200 impl::apply(std::forward<FnT>(_func), std::forward<TupleT>(_args),
202}
make_integer_sequence< size_t, NumT > make_index_sequence
Alias template make_index_sequence.
Definition: Globals.hh:152
static void apply(FnT &&_func, TupleT &&_args)
Definition: Globals.hh:196

References PTL::mpl::impl::apply().

Referenced by PTL::PackagedTask< RetT, Args >::operator()(), and PTL::Task< RetT, Args >::operator()().

◆ consume_parameters()

template<typename... Args>
void PTL::mpl::consume_parameters ( Args &&  ...)

Definition at line 80 of file Globals.hh.

81{}

Referenced by PTL::mpl::impl::apply(), and G4Profiler::Configure().