Used for lambdas which supposed to run only once. The first time it is converted to bool it returns true but every other times it will return false.
More...
Used for lambdas which supposed to run only once. The first time it is converted to bool it returns true but every other times it will return false.
Usage:
using namespace BaseUtils;
SomeEvent.AddLambda([once =
FOnce()]
{
if (once) { ... }
if (MyCondition && once) { ... }
if (once && MyCondition) { ... }
}
Definition at line 39 of file Once.h.