chombo-discharge
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
detail::RepeatTuple< T, N > Struct Template Reference

std::tuple of N copies of T (used to build the SpaceDim position columns). More...

#include <CD_ParticleSoA.H>

Public Types

template<std::size_t >
using Always = T
 Helper alias that maps any index to T.
 
using Type = decltype(make(std::make_index_sequence< N >{}))
 The resulting std::tuple type.
 

Static Public Member Functions

template<std::size_t... I>
static std::tuple< Always< I >... > make (std::index_sequence< I... >)
 Deduce the repeated-tuple type from an index sequence (declaration only).
 

Detailed Description

template<typename T, std::size_t N>
struct detail::RepeatTuple< T, N >

std::tuple of N copies of T (used to build the SpaceDim position columns).

Template Parameters
TElement type to repeat.
NNumber of repetitions.

Member Function Documentation

◆ make()

template<typename T , std::size_t N>
template<std::size_t... I>
static std::tuple< Always< I >... > detail::RepeatTuple< T, N >::make ( std::index_sequence< I... >  )
static

Deduce the repeated-tuple type from an index sequence (declaration only).

Template Parameters
IIndices [0, N).
Returns
A std::tuple of N copies of T.

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