TAtomicBase_Arithmetic::SubExchange

Subtracts Value from Element and returns a copy of the previous value of the element.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/Atomic.h

Include

#include "Templates/Atomic.h"

Syntax

T SubExchange
(
    DiffType Value
)

Remarks

Subtracts Value from Element and returns a copy of the previous value of the element.

Returns

A copy of the previous, undecremented value.

Parameters

Parameter

Description

Value

The value to subtract from the element.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss