FindOrAdd

Overload list

Choose your operating system:

Windows

macOS

Linux

Name Description

Public function

ValueType &

 

FindOrAdd

(
    const KeyType& Key
)

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

Public function

ValueType &

 

FindOrAdd

(
    KeyType&& Key
)

Public function

ValueType &

 

FindOrAdd

(
    const KeyType& Key,
    const ValueType& Value
)

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

Public function

ValueType &

 

FindOrAdd

(
    const KeyType& Key,
    ValueType&& Value
)

Public function

ValueType &

 

FindOrAdd

(
    KeyType&& Key,
    const ValueType& Value
)

Public function

ValueType &

 

FindOrAdd

(
    KeyType&& Key,
    ValueType&& Value
)