Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TInheritedGuardValue
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TInheritedGuardValue
(
Func GetVar, |
Callable constructor — creates the extension internally. | Async/InheritedGuardValue.h | |
TInheritedGuardValue
(
const UE::FInheritedContextExtension& InExtension, |
Pre-built extension constructor — reuses an existing FInheritedContextExtension. | Async/InheritedGuardValue.h |
TInheritedGuardValue(Func, const AssignedType &)
Description
Callable constructor — creates the extension internally. GetVar must return RefType& (e.g. []() -> bool& { return GMyFlag; }). Allocates a TSharedPtr
| Name | TInheritedGuardValue |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/InheritedGuardValue.h |
| Include Path | #include "Async/InheritedGuardValue.h" |
template<typename Func>
TInheritedGuardValue
(
Func GetVar,
const AssignedType & NewValue
)
TInheritedGuardValue(const UE::FInheritedContextExtension &, RefType &, const AssignedType &)
Description
Pre-built extension constructor — reuses an existing FInheritedContextExtension. No allocation; just copies the handle (bumps ref count). The extension must have been created with MakeInheritedContextExtension(Func).
| Name | TInheritedGuardValue |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/InheritedGuardValue.h |
| Include Path | #include "Async/InheritedGuardValue.h" |
TInheritedGuardValue
(
const UE::FInheritedContextExtension & InExtension,
RefType & ReferenceValue,
const AssignedType & NewValue
)