TSortedMap::RemoveAndCopyValue

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/SortedMap.h"

Syntax

bool RemoveAndCopyValue
(
    KeyInitType Key,
    ValueType & OutRemovedValue
)

Remarks

Removes 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)