UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ReversePredicate.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Templates/Invoke.h"
7
12template <typename PredicateType>
14{
15 const PredicateType& Predicate;
16
17public:
19 : Predicate( InPredicate )
20 {
21 }
22
23 template <typename T>
24 UE_FORCEINLINE_HINT bool operator()( T&& A, T&& B ) const
25 {
26 return Invoke( Predicate, Forward<T>(B), Forward<T>(A) );
27 }
28};
#define UE_FORCEINLINE_HINT
Definition Platform.h:723
AUTORTFM_INFER UE_FORCEINLINE_HINT constexpr auto Invoke(FuncType &&Func, ArgTypes &&... Args) -> decltype(((FuncType &&) Func)((ArgTypes &&) Args...))
Definition Invoke.h:44
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition ReversePredicate.h:14
UE_FORCEINLINE_HINT bool operator()(T &&A, T &&B) const
Definition ReversePredicate.h:24
TReversePredicate(const PredicateType &InPredicate)
Definition ReversePredicate.h:18