UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TOverrideVoidReturnInvoker< ReturnType, FuncType > Struct Template Reference

#include <OverrideVoidReturnInvoker.h>

Public Member Functions

 TOverrideVoidReturnInvoker (ReturnType InDefaultValue, FuncType InFunction)
 
template<typename... ArgTypes>
bool operator() (ArgTypes &&... Args)
 

Public Attributes

ReturnType DefaultValue
 
FuncType Function
 

Detailed Description

template<typename ReturnType, typename FuncType>
struct TOverrideVoidReturnInvoker< ReturnType, FuncType >

Wraps invocation of a function that can return a value or not. If it doesn't, the function call is wrapped into a function that will invoke the provided function and return the provided default value.

Constructor & Destructor Documentation

◆ TOverrideVoidReturnInvoker()

template<typename ReturnType , typename FuncType >
TOverrideVoidReturnInvoker< ReturnType, FuncType >::TOverrideVoidReturnInvoker ( ReturnType  InDefaultValue,
FuncType  InFunction 
)
inline

Member Function Documentation

◆ operator()()

template<typename ReturnType , typename FuncType >
template<typename... ArgTypes>
bool TOverrideVoidReturnInvoker< ReturnType, FuncType >::operator() ( ArgTypes &&...  Args)
inline

Member Data Documentation

◆ DefaultValue

template<typename ReturnType , typename FuncType >
ReturnType TOverrideVoidReturnInvoker< ReturnType, FuncType >::DefaultValue

◆ Function

template<typename ReturnType , typename FuncType >
FuncType TOverrideVoidReturnInvoker< ReturnType, FuncType >::Function

The documentation for this struct was generated from the following file: