DUNE-ACFEM (unstable)

Dune::ACFem::Expressions::ReplaceFunctor< From, To, When, Ignore > Struct Template Reference

Replace all expression operands of type T where When<T, From> is std::true_type by an instance of To. More...

#include <dune/acfem/expressions/transform.hh>

Detailed Description

template<class From, class To, template< class... > class When = std::is_same, template< class... > class Ignore = ReplaceDefaultIgnore>
struct Dune::ACFem::Expressions::ReplaceFunctor< From, To, When, Ignore >

Replace all expression operands of type T where When<T, From> is std::true_type by an instance of To.

If When<T, From> is not std::true_type but Ignore<T, From> is std::true_type then copy the expression operand unaltered.

transform() will recurse into the expression tree below T if neither When or Ignore give a positive match.

The fancy additional variadic template parameters are there to allow additional default template arguments in the template template parameters.


The documentation for this struct was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Mar 12, 23:28, 2025)