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

#include <Greater.h>

Public Member Functions

UE_REWRITE constexpr bool operator() (const T &A, const T &B) const
 

Detailed Description

template<typename T = void>
struct TGreater< T >

Binary predicate class for sorting elements in reverse order. Assumes < operator is defined for the template type. Forward declaration exists in ContainersFwd.h.

See: http://en.cppreference.com/w/cpp/utility/functional/greater

TGreater should not be specialized - an appropriate operator< should be added.

Member Function Documentation

◆ operator()()

template<typename T = void>
UE_REWRITE constexpr bool TGreater< T >::operator() ( const T &  A,
const T &  B 
) const
inlineconstexpr

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