STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Static Public Member Functions | Public Types
stapl::tuple_ops::detail::discard_impl< I, D, Tuple, FilteredTuple, Slices, Filter > Struct Template Reference

Implementation of both. More...

Static Public Member Functions

template<typename... T>
static type apply (Tuple const &tup, T... t)
 Filter the tuple and pass along the accumulated result. More...
 

Public Types

typedef FilteredTuple type
 

Detailed Description

template<int I, int D, typename Tuple, typename FilteredTuple, typename Slices, bool Filter = false>
struct stapl::tuple_ops::detail::discard_impl< I, D, Tuple, FilteredTuple, Slices, Filter >

Implementation of both.

See also
tuple_ops::discard and
tuple_ops::filter.
Template Parameters
IThe index of the input tuple that we are currently considering
DThe total size of the input tuple
TupleThe type of the input tuple
FilteredTupleThe type of the output tuple
SlicesThe tuple of compile-time integrals that specifies which indices to keep or discard
FilterFlag indicating whether to filter or discard the tuple

Member Function Documentation

◆ apply()

template<int I, int D, typename Tuple , typename FilteredTuple , typename Slices , bool Filter = false>
template<typename... T>
static type stapl::tuple_ops::detail::discard_impl< I, D, Tuple, FilteredTuple, Slices, Filter >::apply ( Tuple const &  tup,
T...  t 
)
static

Filter the tuple and pass along the accumulated result.

Parameters
tupThe input tuple
tA parameter pack of the constituent parts of the output tuple

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