dune-fem  2.4.1-rc
Static Public Member Functions | List of all members
Dune::InstantiateTuple< Tuple, Key, Seed, len > Struct Template Reference

Instantiate a tuple of elements with identical, simple constructors. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/common/tupleutility.hh>

Static Public Member Functions

static Tuple apply (const Key &key=Key())
 create tuple instance More...
 

Detailed Description

template<class Tuple, class Key, class Seed = std::tuple<>, int len = std::tuple_size< Tuple >::value>
struct Dune::InstantiateTuple< Tuple, Key, Seed, len >

Instantiate a tuple of elements with identical, simple constructors.

Template Parameters
Tupletuple type
Keytype of argument to be passed to each constructor
Seedinternal template argument
leninternal template argument

Sample usage:

Note that the tuple object is required to be copyable.

Member Function Documentation

template<class Tuple , class Key , class Seed = std::tuple<>, int len = std::tuple_size< Tuple >::value>
static Tuple Dune::InstantiateTuple< Tuple, Key, Seed, len >::apply ( const Key &  key = Key())
inlinestatic

create tuple instance

Parameters
[in]keyargument passed to each constructor

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