Dune Core Modules (2.9.0)
namespace for customization of math functions with Dune-Semantics More...
Classes | |
struct | ADLTag |
Tag to make sure the functions in this namespace can be found by ADL. More... | |
Detailed Description
namespace for customization of math functions with Dune-Semantics
You can add overloads for the Dune-semantics of math-functions in this namespace. These overloads will be used by functors like Dune::isNaN
to implement these functions, and will be preferred over functions found by ADL, or the corresponding functions from the standard (whether they are found by ADL or in the namespace std
.
PriorityTag
There are two predefined priorities:
<1> provides a default implementation, only applicable if the camelCase-Version of the function (e.g. isNaN
) can be found via ADL for an argument of type T
. (Otherwise the overload should not participate in overload resolution.)
<0> provides a default implementation that forwards the call to the lower-case version of the function (e.g. isnan
), found via ADL and the namespace std
.
Any higher priority up to 10 can be used by other overloads.