TMap::RemoveAndCopyValue

Remove the pair with the specified key and copies the value that was removed to the ref parameter

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Map.h

Include

#include "Containers/Map.h"

Syntax

bool RemoveAndCopyValue
(
    KeyInitType Key,
    ValueType & OutRemovedValue
)

Remarks

Remove the pair with the specified key and copies the value that was removed to the ref parameter

Returns

whether or not the key was found

Parameters

Parameter

Description

Key

The key to search for

OutRemovedValue

If found, the value that was removed (not modified if the key was not found)

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