dune-common 2.9.0
Loading...
Searching...
No Matches
Public Types | List of all members
Dune::ReduceTuple< F, Tuple, Seed, N > Struct Template Reference

Apply reduce with meta binary function to template. More...

#include <dune/common/tupleutility.hh>

Public Types

typedef ReduceTuple< F, Tuple, Seed, N-1 >::type Accumulated
 
typedef std::tuple_element< N-1, Tuple >::type Value
 
typedef F< Accumulated, Value >::type type
 Result of the reduce operation.
 

Detailed Description

template<template< class, class > class F, class Tuple, class Seed = std::tuple<>, int N = std::tuple_size<Tuple>::value>
struct Dune::ReduceTuple< F, Tuple, Seed, N >

Apply reduce with meta binary function to template.

For a tuple<T0,T1,...,TN-1,TN,...> the exported result is

F< ... F< F< F<Seed,T0>::type, T1>::type, T2>::type, ... TN-1>::type

Template Parameters
FBinary meta function
TupleApply reduce operation to this std::tuple
SeedInitial value for reduce operation
NReduce the first N std::tuple elements

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