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