KDDockWidgets API Documentation 2.1
|
An example struct that is used with a call to KDBINDINGS_DECLARE_FUNCTION to declare all overloads of std::abs as usable in data binding. More...
#include <node_functions.h>
Public Member Functions | |
template<typename... Ts> | |
auto | operator() (Ts &&...x) const |
The operator() is overloaded so the struct can be used as a function object. | |
An example struct that is used with a call to KDBINDINGS_DECLARE_FUNCTION to declare all overloads of std::abs as usable in data binding.
Because of the way node_abs overloads its operator(), it can be used in a call to KDBINDINGS_DECLARE_FUNCTION like this:
To generate such a struct for another function, use the KDBINDINGS_DECLARE_FUNCTION_OBJECT macro.
Definition at line 72 of file node_functions.h.
|
inline |
The operator() is overloaded so the struct can be used as a function object.
Because this operator is templated, a single instance of node_abs can refer to all overloads of std::abs.
Definition at line 80 of file node_functions.h.