2#ifndef DUNE_PDELAB_FUNCTION_BINDTIME_HH
3#define DUNE_PDELAB_FUNCTION_BINDTIME_HH
5#include <dune/common/indices.hh>
6#include <dune/functions/common/signature.hh>
11template<
typename F,
typename Placeholder>
15 SetTimeWrapper(F&& f, Placeholder p)
18 template<
typename Domain>
19 auto operator()(
const Domain & d)
const
21 return swap_arguments(d,_t,_p);
23 void setTime(
double t)
31 template<
typename Domain>
32 auto swap_arguments(
const Domain& d,
double t,
const index_constant<1>&)
const
36 template<
typename Domain>
37 auto swap_arguments(
const Domain& d,
double t,
const index_constant<2>&)
const
43template<
typename F,
typename Placeholder>
44SetTimeWrapper<F,Placeholder>
45bindTime(F&& f, Placeholder p)
47 return SetTimeWrapper<F,Placeholder>(f,p);
Dune namespace.
Definition: alignedallocator.hh:13