Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TMultiMap
Description
Add a key-value association to the map.
The association doesn't replace any of the key's existing associations. However, if both key and value match an existing association in the map, no new association is made and the existing association's value is returned.
| Name | EmplaceUnique |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Map.h |
| Include Path | #include "Containers/Map.h" |
template<typename InitKeyType, typename InitValueType>
ValueType & EmplaceUnique
(
InitKeyType && InKey,
InitValueType && InValue
)
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
| Name | Remarks |
|---|---|
| InKey | The key to associate. |
| InValue | The value to associate. |