#include <delegate_decl.h>
Inherits detail::DelegateBase< detail::delegates::DelegateInterface< ReturnType > >.
template<typename ReturnType>
class a_util::experimental::NullaryDelegate< ReturnType >
General delegate template: encapsulates a function or a method without a parameter
- Template Parameters
-
| ReturnType | Return type of the function to delegate |
◆ NullaryDelegate() [1/2]
template<typename ReturnType>
CTOR to delegate a function
- Parameters
-
| [in] | Function | Pointer to the function to delegate |
◆ NullaryDelegate() [2/2]
template<typename ReturnType>
template<typename Method, typename Instance>
CTOR to delegate a class method
- Template Parameters
-
| Method | Pointer to the method |
| Instance | Class the method shall be invoked from |
- Parameters
-
| [in] | method | Pointer to the method to delegate |
| [in] | instance | Reference to the class instance the method is member of |
◆ operator()()
template<typename ReturnType>
Invocation operator - invokes the delegated method or function
- Returns
- Return value of the invoked function or method
The documentation for this class was generated from the following files:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/a_util/base/detail/delegate_decl.h
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/a_util/base/detail/delegate_impl.h