TAtomicBase_Basic::Exchange

Sets the element to a specific value, returning a copy of the previous value.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Templates/Atomic.h"

Syntax

T Exchange
(
    T Value
)

Remarks

Sets the element to a specific value, returning a copy of the previous value.

Returns

A copy of the previous value.

Parameters

Parameter

Description

Value

The value to set the element to.

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