TMultiMap::AddUnique

Add a key-value association to the map.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Map.h"

Syntax

ValueType & AddUnique
(
    const KeyType & InKey,
    const ValueType & InValue
)

Remarks

Add a key-value association to the map. The association doesn't replace any of the key's existing associations. However, if both the key and value match an existing association in the map, no new association is made and the existing association's value is returned.

Returns

A reference to the value as stored in the map; the reference is only valid until the next change to any key in the map.

Parameters

Parameter

Description

InKey

The key to associate.

InValue

The value to associate.

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