UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TArrowWrapper< WrappedType > Struct Template Reference

#include <ArrowWrapper.h>

Public Member Functions

 TArrowWrapper (const WrappedType &InValue)
 
 TArrowWrapper (WrappedType &&InValue)
 
const WrappedTypeoperator-> () const
 

Public Attributes

WrappedType Value
 

Detailed Description

template<typename WrappedType>
struct TArrowWrapper< WrappedType >

Wrapper type for Iterators that return a structure by value from operator*, and want to support Iter->Property to behave the same as (Iter).Property. When returning a structure by reference, operator automatically handles -> as well, but when returning by value it does not.

Example: struct FIterator { public: ... // The problematic return-by-value structure from operator* // Without operator->, (Iter).Key compiles but Iter->Key does not. TPair<FStringView, ViewedValueType&> operator() const;

// TArrowWrapper takes the value from operator* and allows -> to access it. TArrowWrapper<TPair<FStringView, ViewedValueType&>> operator->() const; };

Constructor & Destructor Documentation

◆ TArrowWrapper() [1/2]

template<typename WrappedType >
TArrowWrapper< WrappedType >::TArrowWrapper ( const WrappedType InValue)
inlineexplicit

◆ TArrowWrapper() [2/2]

template<typename WrappedType >
TArrowWrapper< WrappedType >::TArrowWrapper ( WrappedType &&  InValue)
inlineexplicit

Member Function Documentation

◆ operator->()

template<typename WrappedType >
const WrappedType * TArrowWrapper< WrappedType >::operator-> ( ) const
inline

Member Data Documentation

◆ Value


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