UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TDereferenceWrapper< T, PREDICATE_CLASS > Struct Template Reference

#include <Sorting.h>

Public Member Functions

 TDereferenceWrapper (const PREDICATE_CLASS &InPredicate)
 
UE_FORCEINLINE_HINT bool operator() (T &A, T &B)
 
UE_FORCEINLINE_HINT bool operator() (const T &A, const T &B) const
 

Public Attributes

const PREDICATE_CLASSPredicate
 

Detailed Description

template<typename T, class PREDICATE_CLASS>
struct TDereferenceWrapper< T, PREDICATE_CLASS >

Helper class for dereferencing pointer types in Sort function

Constructor & Destructor Documentation

◆ TDereferenceWrapper()

template<typename T , class PREDICATE_CLASS >
TDereferenceWrapper< T, PREDICATE_CLASS >::TDereferenceWrapper ( const PREDICATE_CLASS InPredicate)
inline

Member Function Documentation

◆ operator()() [1/2]

template<typename T , class PREDICATE_CLASS >
UE_FORCEINLINE_HINT bool TDereferenceWrapper< T, PREDICATE_CLASS >::operator() ( const T &  A,
const T &  B 
) const
inline

◆ operator()() [2/2]

template<typename T , class PREDICATE_CLASS >
UE_FORCEINLINE_HINT bool TDereferenceWrapper< T, PREDICATE_CLASS >::operator() ( T &  A,
T &  B 
)
inline

Pass through for non-pointer types

Member Data Documentation

◆ Predicate

template<typename T , class PREDICATE_CLASS >
const PREDICATE_CLASS& TDereferenceWrapper< T, PREDICATE_CLASS >::Predicate

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