| FNoncopyable
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h |
Include |
#include "Templates/UnrealTemplate.h" |
template<typename Type>
struct TScopeCounter : private 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
Name | Description | |
---|---|---|
|
TScopeCounter ( |
Name | Description | |
---|---|---|
|
~TScopeCounter() |