- Home
- About DUNE
- Download
- Documentation
- Community
- Development
Helper template to prepend a type to a tuple. More...
#include <dune/common/tupleutility.hh>
Public Types | |
typedef Tuple | type |
For all specializations this is the type of a tuple with T prepended. | |
Public Member Functions | |
dune_static_assert (AlwaysFalse< Tuple >::value,"Attempt to use the ""unspecialized version of PushFrontTuple. ""PushFrontTuple needs to be specialized for ""each possible tuple size. Naturally the number of ""pre-defined specializations is limited arbitrarily. ""Maybe you need to raise this limit by defining some ""more specializations?") |
Helper template to prepend a type to a tuple.
Tuple | The tuple type to extend | |
T | The type to be prepended to the tuple |
With variadic templates the generic specialization would be:
template<class... TupleArgs, class T> struct PushFrontTuple<typename Dune::tuple<TupleArgs...>, T> { typedef typename Dune::tuple<T, TupleArgs...> type; };
typedef Tuple Dune::PushFrontTuple< Tuple, T >::type |
For all specializations this is the type of a tuple with T prepended.
Suppose you have Tuple=tuple<T1, T2, ..., TN> then this type is tuple<T, T1, T2, ..., TN>.
Dune::PushFrontTuple< Tuple, T >::dune_static_assert | ( | AlwaysFalse< Tuple >::value | , | |
"Attempt to use the ""unspecialized version of PushFrontTuple< Tuple, T >. ""PushFrontTuple< Tuple, T > needs to be specialized for ""each possible tuple size. Naturally the number of ""pre-defined specializations is limited arbitrarily. ""Maybe you need to raise this limit by defining some ""more specializations?" | ||||
) |
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].