TKeyValuePair

Helper class to make it easy to use key/value pairs with a container.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/UnrealTemplate.h

Include

#include "Templates/UnrealTemplate.h"

Syntax

template<typename KeyType, typename ValueType>
struct TKeyValuePair

Remarks

Helper class to make it easy to use key/value pairs with a container.

Variables

Name Description

Public variable

KeyType

 

Key

Public variable

ValueType

 

Value

Constructors

Name Description

Public function

TKeyValuePair()

Public function

TKeyValuePair

(
    const KeyType& InKey
)

Public function

TKeyValuePair

(
    const KeyType& InKey,
    const ValueType& InValue
)

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const TKeyValuePair& Other
)

Public function Const

bool

 

operator()

(
    const TKeyValuePair& A,
    const TKeyValuePair& B
)

Public function Const

bool

 

operator<

(
    const TKeyValuePair& Other
)

Public function Const

bool

 

operator==

(
    const TKeyValuePair& Other
)

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