HyperHDG
|
#include <limits>
#include <type_traits>
#include <utility>
Go to the source code of this file.
Macros | |
#define | UNUSED(x) /* nothing */ |
Unused parametes will neither result in g++, nor in doxygen warnings if wrapped by this. More... | |
#define | HAS_MEMBER_FUNCTION(func, name) |
Check if some class implements some function with some signature. More... | |
#define HAS_MEMBER_FUNCTION | ( | func, | |
name | |||
) |
Check if some class implements some function with some signature.
This macro receives the name of the function that is checked to be implemented with a given signature (not handled to the macro itself) and the name of a struct (output) that can be used to check whether function func is implemented.
Having invoked the macro, we are able to use the template struct name
to check whether function fun
is a (static or non-static) member function of an element of class C
, where Ret(Args)
is the supposed signature.
[in] | func | The name of the function that is checked to be implemented. |
[out] | name | The resulting struct whose value is true if the function is implemented. |
#define UNUSED | ( | x | ) | /* nothing */ |
Unused parametes will neither result in g++, nor in doxygen warnings if wrapped by this.