124 files changed.

This commit is contained in:
Milxnor
2023-04-15 19:53:58 -04:00
parent 63473de425
commit bbf28ed9e9
124 changed files with 60988 additions and 577 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include "UnrealTemplate.h"
/**
* Helper class to reverse a predicate.
* Performs Predicate(B, A)
*/
template <typename PredicateType>
class TReversePredicate
{
const PredicateType& Predicate;
public:
TReversePredicate(const PredicateType& InPredicate)
: Predicate(InPredicate)
{}
template <typename T>
FORCEINLINE bool operator()(T&& A, T&& B) const { return Predicate(Forward<T>(B), Forward<T>(A)); }
};