TSortedMap::FindOrAdd

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

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.

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