Navigation
API > API/Runtime > API/Runtime/Core
Commonly used to make sure a value is incremented, and then decremented anyway the function can terminate. Usage: TScopeCounter
| Name | TScopeCounter |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
| Include Path | #include "Templates/UnrealTemplate.h" |
Syntax
template<typename Type>
struct TScopeCounter : private FNoncopyable
Inheritance Hierarchy
- FNoncopyable → TScopeCounter
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TScopeCounter
(
Type& ReferenceValue |
Templates/UnrealTemplate.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TScopeCounter() |
Templates/UnrealTemplate.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| RefValue | Type & | Templates/UnrealTemplate.h |