Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
AUTORTFM_INFER constexpr auto Invoke
(
FuncType&& Func, |
Invokes a callable with a set of arguments. | Templates/Invoke.h | |
AUTORTFM_INFER constexpr auto Invoke
(
ReturnType ObjType::* pdm, |
Templates/Invoke.h | ||
AUTORTFM_INFER constexpr auto Invoke
(
PtrMemFunType PtrMemFun, |
Templates/Invoke.h |
Invoke(FuncType &&, ArgTypes &&...)
Description
Invokes a callable with a set of arguments. Allows the following:
- Calling a functor object given a set of arguments.
- Calling a function pointer given a set of arguments.
- Calling a member function given a reference to an object and a set of arguments.
- Calling a member function given a pointer (including smart pointers) to an object and a set of arguments.
- Projecting via a data member pointer given a reference to an object.
- Projecting via a data member pointer given a pointer (including smart pointers) to an object.
See: http://en.cppreference.com/w/cpp/utility/functional/invoke
| Name | Invoke |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Invoke.h |
| Include Path | #include "Templates/Invoke.h" |
template<typename FuncType, typename... ArgTypes>
AUTORTFM_INFER constexpr auto Invoke
(
FuncType && Func,
ArgTypes &&... Args
)
Invoke(ReturnType ObjType::*, TargetType &&)
| Name | Invoke |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Invoke.h |
| Include Path | #include "Templates/Invoke.h" |
template<typename ReturnType, typename ObjType, typename TargetType>
AUTORTFM_INFER constexpr auto Invoke
(
ReturnType ObjType::* pdm,
TargetType && Target
)
Invoke(PtrMemFunType, TargetType &&, ArgTypes &&...)
| Name | Invoke |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/Invoke.h |
| Include Path | #include "Templates/Invoke.h" |
template<typename PtrMemFunType, typename TargetType, typename... ArgTypes, typename ObjType>
AUTORTFM_INFER constexpr auto Invoke
(
PtrMemFunType PtrMemFun,
TargetType && Target,
ArgTypes &&... Args
)