TSortedMap::FindOrAdd

Returns the value associated with a specified key, or if none exists, adds a value using the default constructor.

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

ValueType & FindOrAdd
(
    const KeyType & Key
)

Remarks

Returns the value associated with a specified key, or if none exists, adds a value using the default constructor.

Returns

A reference to the value associated with the specified key.

Parameters

Parameter

Description

Key

The key to search for.