UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TPairInitializer< KeyInitType, ValueInitType > Class Template Reference

#include <Map.h>

Public Member Functions

 TPairInitializer (KeyInitType InKey, ValueInitType InValue)
 
template<typename KeyType , typename ValueType >
 TPairInitializer (const TPair< KeyType, ValueType > &Pair)
 
template<typename KeyType , typename ValueType >
 operator TPair< KeyType, ValueType > () const
 

Public Attributes

std::conditional_t< std::is_rvalue_reference_v< KeyInitType >, KeyInitType &, KeyInitType > Key
 
std::conditional_t< std::is_rvalue_reference_v< ValueInitType >, ValueInitType &, ValueInitType > Value
 

Detailed Description

template<typename KeyInitType, typename ValueInitType>
class TPairInitializer< KeyInitType, ValueInitType >

An initializer type for pairs that's passed to the pair set when adding a new pair.

Constructor & Destructor Documentation

◆ TPairInitializer() [1/2]

template<typename KeyInitType , typename ValueInitType >
TPairInitializer< KeyInitType, ValueInitType >::TPairInitializer ( KeyInitType  InKey,
ValueInitType  InValue 
)
inline

Initialization constructor.

◆ TPairInitializer() [2/2]

template<typename KeyInitType , typename ValueInitType >
template<typename KeyType , typename ValueType >
TPairInitializer< KeyInitType, ValueInitType >::TPairInitializer ( const TPair< KeyType, ValueType > &  Pair)
inline

Implicit conversion to pair initializer.

Member Function Documentation

◆ operator TPair< KeyType, ValueType >()

template<typename KeyInitType , typename ValueInitType >
template<typename KeyType , typename ValueType >
TPairInitializer< KeyInitType, ValueInitType >::operator TPair< KeyType, ValueType > ( ) const
inline

Member Data Documentation

◆ Key

template<typename KeyInitType , typename ValueInitType >
std::conditional_t<std::is_rvalue_reference_v<KeyInitType>, KeyInitType&, KeyInitType> TPairInitializer< KeyInitType, ValueInitType >::Key

◆ Value

template<typename KeyInitType , typename ValueInitType >
std::conditional_t<std::is_rvalue_reference_v<ValueInitType>, ValueInitType&, ValueInitType> TPairInitializer< KeyInitType, ValueInitType >::Value

The documentation for this class was generated from the following file: