TKeyValuePair

Copy of TKeyValuePair<> from Core, but with a default initializer for each member.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/ProfilingDebugging/CookStats.h

Include

#include "ProfilingDebugging/CookStats.h"

Syntax

template<typename KeyType, typename ValueType>
struct TKeyValuePair

Remarks

Copy of TKeyValuePair<> from Core, but with a default initializer for each member. Useful for containers that auto-add default constructed members. We can't change TKeyValuePair because code relies on it and don't want to slow it down for those use cases.

Variables

Name Description

Public variable

KeyType

 

Key

Public variable

ValueType

 

Value

Constructors

Name Description

Public function

TKeyValuePair()

Public function

TKeyValuePair

(
    KeyType2&& InKey,
    ValueType2&& 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