![]() |
Ark Server API (ASA) - Wiki
|
#include <UnrealTemplate.h>
Inheritance diagram for TScopeCounter< Type >:
Collaboration diagram for TScopeCounter< Type >:Public Member Functions | |
| TScopeCounter (Type &ReferenceValue) | |
| ~TScopeCounter () | |
Private Attributes | |
| Type & | RefValue |
Additional Inherited Members | |
Private Member Functions inherited from FNoncopyable | |
| FNoncopyable () | |
| ~FNoncopyable () | |
Commonly used to make sure a value is incremented, and then decremented anyway the function can terminate. Usage: TScopeCounter<int32> BeginProcessing(ProcessingCount); // increments ProcessingCount, and decrements it in the dtor
Definition at line 384 of file UnrealTemplate.h.
|
inline |
Definition at line 386 of file UnrealTemplate.h.
|
inline |
Definition at line 391 of file UnrealTemplate.h.
|
private |
Definition at line 397 of file UnrealTemplate.h.