Reference documentation for deal.II version 9.0.0
|
#include <deal.II/base/template_constraints.h>
A type that is sometimes used for template tricks. For example, in some situations one would like to do this:
The problem is: the language doesn't allow us to specialize X::f()
without specializing the outer class first. One of the common tricks is therefore to use something like this:
Note that we have replaced specialization of X::f()
by overloading, but that from inside the function g()
, we can still select which of the different X::f()
we want based on the subdim
template argument.
Definition at line 328 of file template_constraints.h.